joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412630
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push 0x42a4dc
lea ecx, [ebp - 4]
call fcn.00401380
lea eax, [ebp - 4]
push 0xfffffc18
push eax
call fcn.00409030
mov edx, dword [ebp - 4]
add esp, 8
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41267d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [0x43a9c9], 0
je 0x41268f
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret 0x10
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 4]
push ecx
push eax
mov ecx, 0x43aa20
call fcn.0040fc20
cmp al, 1
jne 0x4126c1
push dword [ebp + 0x14]
mov ecx, 0x43aa20
call fcn.00411750
mov esi, eax
jmp 0x4126c4
mov esi, dword [ebp - 4]
cmp dword [0x43ac80], 0
jne 0x4126dc
cmp byte [0x43aa5e], 0
je 0x4126dc
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x412960
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428898
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x438130]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
mov dword [esi + 8], vtable.CProxy_ISkypeUpdaterJobEvents_class_CLaunchInstallerJob_.0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0xffffffff
mov dword [esi], vtable.ATL::CComObject_class_CLaunchInstallerJob_.0
mov dword [esi + 4], vtable.ATL::CComObject_class_CLaunchInstallerJob_.1.0
mov dword [esi + 8], vtable.ATL::CComObject_class_CLaunchInstallerJob_.2.0
mov ecx, dword [0x43a900]
mov dword [ebp - 4], 0
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x414c80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0041485f
push eax
push esi
push dword [ebp + 8]
call fcn.00414814
add esp, 0x30
les esi, [eax]
mov dword [ebp - 0xb8], eax
call fcn.0041484f
stosd dword es:[edi], eax
mov ecx, 0x9d88812d
invalid
invalid
popfd
jl 0x414cd4
invalid
invalid
Function at 0x415750
Capabilities:
Contain obfuscated stackstrings

Disassembly:
stosd dword es:[edi], eax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.0041482d
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.0041485f
pop ecx
push eax
push dword [ebp + 0x18]
sbb bh, bh
jne 0x415848
call fcn.00414814
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.0041484f
sbb byte [ebx + 4], 0xe4
push 0x104
lea eax, [ebp - 0x12c]
push eax
call dword [ebp - 0x3d4]
mov dword [ebp - 0x28], eax
call fcn.0041484f
in eax, 0x1d
invalid

Function at 0x417240
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x438130]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x43acb4], 0
push esi
mov esi, dword [ebp + 8]
je 0x417276
mov eax, dword [0x43acb0]
mov dword [esi], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419146
mov esp, ebp
pop ebp
ret
push 0x114
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.004195b0
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41736f
mov eax, dword [ebp - 0x108]
sub eax, 2
jne 0x41734e
mov eax, dword [ebp - 0x114]
cmp eax, 6
ja 0x417363
jne 0x41730c
mov eax, dword [ebp - 0x110]
cmp eax, 2
ja 0x417363
jne 0x4172eb
mov eax, 7
mov dword [0x43acb0], eax
jmp 0x417374
cmp eax, 1
jne 0x4172fc
mov eax, 6
mov dword [0x43acb0], eax
jmp 0x417374
test eax, eax
jne 0x41735a
mov eax, 5
mov dword [0x43acb0], eax
jmp 0x417374
cmp eax, 5
jne 0x417349
mov eax, dword [ebp - 0x110]
cmp eax, 2
jne 0x417328
mov eax, 4
mov dword [0x43acb0], eax
jmp 0x417374
cmp eax, 1
jne 0x417339
mov eax, 3
mov dword [0x43acb0], eax
jmp 0x417374
test eax, eax
jne 0x41735a
mov eax, 2
mov dword [0x43acb0], eax
jmp 0x417374
cmp eax, 4
ja 0x41735a
mov eax, 1
mov dword [0x43acb0], eax
jmp 0x417374
xor eax, eax
mov dword [0x43acb0], eax
jmp 0x417374
mov eax, 0x270f
mov dword [0x43acb0], eax
jmp 0x417374
mov eax, dword [0x43acb0]
mov ecx, dword [ebp - 4]
mov dword [esi], eax
xor ecx, ebp
mov byte [0x43acb4], 1
pop esi
call fcn.00419146
mov esp, ebp
pop ebp
ret
Function at 0x417410
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x417443
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
add eax, 4
push eax
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x417443
cmp dword [ebp + 0xc], 0
setne al
mov byte [esi], al
mov al, 1
pop esi
pop ebp
ret 8
xor al, al
pop esi
pop ebp
ret 8

Function at 0x4177a0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428e18
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x438130]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], vtable.ATL::CAccessToken.0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
mov eax, dword [ebp + 8]
push 2
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x417838
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x20]
call dword [eax + 4]
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], ecx
test esi, esi
je 0x417838
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 0xc]
add eax, 4
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x417838
cmp dword [ebp - 0x10], 0
setne al
mov byte [esi], al
xor esi, esi
jmp 0x41783f
call fcn.00401f80
mov esi, eax
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], vtable.ATL::CAccessToken.0
test ecx, ecx
je 0x417866
test eax, eax
je 0x41785f
push ecx
push eax
call dword [sym.imp.USERENV.dll_UnloadUserProfile]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], 0
test eax, eax
je 0x417878
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0
push dword [ebp - 0x14]
call fcn.00418558
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x417bd0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 4]
push esi
push edi
push eax
push dword [ebx]
mov dword [ebp - 4], 0
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
xor esi, esi
xor eax, eax
ja 0x417c7e
jb 0x417c01
cmp edi, 0xffffffff
ja 0x417c7e
push edi
call fcn.00419724
mov esi, eax
add esp, 4
test esi, esi
je 0x417c7e
push esi
push edi
push dword [ebp - 4]
push dword [ebx]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x417c7e
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 0x42b820
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x417c7e
mov edx, dword [ebp + 8]
mov bl, 1
mov ecx, dword [ebp + 0xc]
push esi
movzx eax, word [edx + 0xa]
mov word [ecx], ax
movzx eax, word [edx + 8]
mov word [ecx + 2], ax
movzx eax, word [edx + 0xe]
mov word [ecx + 4], ax
movzx eax, word [edx + 0xc]
mov word [ecx + 6], ax
call fcn.004188a8
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
xor bl, bl
call fcn.004188a8
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x424695
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x438130]
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.004207a9
mov dword [ebp - 0x14], eax
cmp dword [0x43bbb0], esi
jne 0x424788
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x424715
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x424868
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x424868
push 0x431dd4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x424868
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43bbb0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43bbb4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x43bbb8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43bbc0], eax
test eax, eax
je 0x424785
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43bbbc], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4247ad
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4247a0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4247c2
push 4
pop eax
jmp 0x42486a
cmp dword [ebp - 0x14], esi
je 0x4247c2
push dword [0x43bbb0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4247a7
mov eax, dword [0x43bbbc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x424820
cmp dword [0x43bbc0], edi
je 0x424820
push eax
call ebx
push dword [0x43bbc0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x424820
test eax, eax
je 0x424820
call ecx
test eax, eax
je 0x424815
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 0x424815
test byte [ebp - 8], 1
jne 0x424820
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x424850
mov eax, dword [0x43bbb4]
cmp eax, edi
je 0x42484d
push eax
call ebx
test eax, eax
je 0x42484d
call eax
mov esi, eax
test esi, esi
je 0x42484d
mov eax, dword [0x43bbb8]
cmp eax, edi
je 0x42484d
push eax
call ebx
test eax, eax
je 0x42484d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43bbb0]
call ebx
test eax, eax
je 0x424868
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x42486a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419146
mov esp, ebp
pop ebp
ret
Function at 0x401d80
Capabilities:
Accept command line arguments

Disassembly:
push ebx
sub esp, 0x28
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
sub esp, 8
test eax, eax
je 0x401e30
mov ebx, eax
lea eax, [esp + 0x18]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00401540
test al, al
je 0x401df0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
sub esp, 4
mov eax, dword [esp + 0x18]
add esp, 0x28
pop ebx
ret 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x52a05e
mov dword [esp + 4], 0x52a0a0
mov dword [esp], 0
call dword [sym.imp.USER32.dll_MessageBoxW]
sub esp, 0x10
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x401dd0
mov dword [esp + 0x18], 1
jmp 0x401dd0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x52a05e
mov dword [esp + 4], 0x52a06c
mov dword [esp], 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 1
sub esp, 0x10
add esp, 0x28
pop ebx
ret 0x10

Function at 0x40bd50
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x5843a0]
test esi, esi
jle 0x40be60
mov edi, dword [0x5843a4]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x40bd84
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x40be05
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x40bd70
mov dword [esp], eax
mov ebx, eax
call fcn.0040c640
test eax, eax
mov edi, eax
je 0x40be87
mov eax, dword [0x5843a4]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.0040c740
add eax, dword [edi + 0xc]
mov edx, dword [0x5843a4]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40be67
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x40bdfe
sub eax, 4
and eax, 0xfffffffb
jne 0x40be10
add dword [0x5843a0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x5843a4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x40bdfe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.004141e0
lea esi, [esi]
xor esi, esi
jmp 0x40bd8e
mov eax, dword [0x5843a4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.004141e0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.004141e0
mov esi, esi
lea edi, [edi]
Function at 0x40c2c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x5843b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x5843b0]
sub esp, 4
test ebx, ebx
je 0x40c315
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40c30e
test esi, esi
je 0x40c30e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40c2f0
mov dword [esp], 0x5843b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40dbf0
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0xc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x529a28], eax
je 0x40dc07
add esp, 0xc
ret
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x40e100
Capabilities:
Print debug messages

Disassembly:
test eax, eax
je 0x40e130
push edi
push esi
push ebx
mov ebx, eax
add esp, 0xffffff80
mov dword [esp], eax
call fcn.00410fa0
cmp eax, 1
je 0x40e132
mov dword [ebx], 0xffffffff
sub esp, 0xffffff80
pop ebx
pop esi
pop edi
ret
repz ret
lea ebx, [esp + 0x15]
mov esi, str.Error_cleaning_up_spin_keys_for_thread
mov ecx, 0xa
xor eax, eax
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x3d]
mov ecx, 0x43
rep stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea edx, [esp + 0x3c]
mov dword [esp + 8], 0xa
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.msvcrt.dll__ultoa]
cmp byte [esp + 0x3c], 0
mov eax, 0x27
jne 0x40e185
jmp 0x40e1a2
cmp eax, 0x6a
je 0x40e193
add eax, 1
cmp byte [ebx + eax], 0
jne 0x40e180
cmp eax, 0x6a
jne 0x40e1a2
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push eax
call sub.msvcrt.dll_abort
mov byte [esp + eax + 0x15], 0xa
mov byte [esp + eax + 0x16], 0
jmp 0x40e193
Function at 0x40e240
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp dword [0x584424], 1
je 0x40e255
call fcn.0040e1b0
mov eax, dword [0x529a28]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x40e280
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0040e050
mov esi, eax
mov eax, dword [entry3]
test eax, eax
je 0x40e26c
test esi, esi
je 0x40e26c
mov dword [esi + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x18], eax
lea eax, [esi + 0x38]
sub esp, 0x10
mov dword [esi + 0x1c], 0xffffffff
call fcn.0040e100
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esi + 0x64], 0
mov dword [esi + 0x14], 0
call ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, eax
call ebx
lea edx, [esi + 0x14]
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edx
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je 0x40e382
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esi + 0x6c], eax
movzx eax, byte [esi + 0x20]
sub esp, 4
mov dword [esi + 0x68], 0
and eax, 0xffffffcf
or eax, 0x10
mov byte [esi + 0x20], al
mov eax, dword [0x529a28]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x40e382
add esp, 0x2c
mov ebx, esi
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.msvcrt.dll_abort
mov esi, esi
lea edi, [edi]
Function at 0x40e4c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x40e4f0
mov edi, dword [esp + 0x28]
test edi, edi
je 0x40e591
add esp, 0x10
mov eax, 1
pop ebx
pop esi
pop edi
ret 0xc
cmp eax, 1
je 0x40e5c0
cmp eax, 3
jne 0x40e4da
mov eax, dword [0x529a28]
cmp eax, 0xffffffff
je 0x40e4da
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x40e4da
test byte [eax + 0x20], 0x30
je 0x40e5e2
mov eax, dword [eax + 0xb4]
test eax, eax
jne 0x40e6e4
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x40e564
mov dword [esp], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x40e556
mov dword [esp], eax
call esi
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call fcn.0040d960
lea eax, [ebx + 0x38]
call fcn.0040e100
mov esi, dword [ebx + 0xb0]
test esi, esi
jne 0x40e669
mov eax, ebx
call fcn.0040ddf0
jmp 0x40e669
mov eax, dword [0x584400]
test eax, eax
je 0x40e4da
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov dword [0x584400], 0
sub esp, 4
jmp 0x40e4da
mov dword [esp + 4], 0x40db10
mov dword [esp], 1
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
sub esp, 8
mov dword [0x584400], eax
jmp 0x40e4da
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x40e690
test eax, eax
je 0x40e600
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebx + 0xb4]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x68], 1
test eax, eax
jne 0x40e6c0
test byte [ebx + 0x24], 4
lea edi, [ebx + 0x1c]
lea esi, [ebx + 0x38]
je 0x40e6d0
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x40e645
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [ebx + 0x14], 0
mov dword [esp], edi
call fcn.0040d960
mov eax, esi
call fcn.0040e100
mov ecx, dword [ebx + 0xb0]
test ecx, ecx
je 0x40e585
mov eax, dword [0x529a28]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
jmp 0x40e4da
test eax, eax
je 0x40e6a0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
lea eax, [ebx + 0x1c]
mov dword [ebx + 0x18], 0
mov dword [esp], eax
call fcn.0040d960
lea eax, [ebx + 0x38]
call fcn.0040e100
jmp 0x40e4da
call fcn.0040e3d0
jmp 0x40e61c
mov dword [esp], edi
call fcn.0040d960
mov eax, esi
call fcn.0040e100
jmp 0x40e4da
call fcn.0040e3d0
jmp 0x40e532