joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c2f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x438863
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
mov eax, dword [esi + 0x1c]
push eax
call fcn.00434bf8
xor ebx, ebx
push 0x190
mov dword [esp + 0x30], ebx
call fcn.0042f4c1
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, ebx
mov byte [esp + 0x2c], 1
je 0x40c346
push ebx
mov ecx, eax
call fcn.0040edc0
mov edi, eax
jmp 0x40c348
xor edi, edi
mov ecx, dword [esi + 4]
push edi
mov byte [esp + 0x30], bl
call fcn.0040cc50
test eax, eax
jne 0x40c388
cmp edi, ebx
je 0x40c365
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00434c6a
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
lea eax, [esp + 0x10]
mov ecx, esi
push eax
push edi
call fcn.004056b0
cmp edi, ebx
je 0x40c3a1
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
mov eax, dword [esi + 0x34]
mov edi, 0xa
cdq
sub eax, edx
push ebp
sar eax, 1
add eax, edi
cmp eax, edi
jl 0x40c431
mov ebp, 0x14
mov ecx, esi
call fcn.00405020
test eax, eax
jne 0x40c431
mov edx, dword [esi + 0x34]
mov ecx, dword [esi + 0x30]
mov eax, edx
lea ebx, [esi + 0x54]
shr eax, 1
sub eax, edi
test ebx, ebx
je 0x40c3db
mov ebx, dword [ebx + 4]
push 0xcc0020
push edx
push ecx
push 0
push 0
push ebx
push ebp
push ecx
push eax
mov eax, dword [esp + 0x3c]
push 0
push eax
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, 0xcccccccd
mul dword [esi + 0x34]
shr edx, 3
mov eax, 0x66666667
push edx
imul edi
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov ecx, esi
push edx
call fcn.004058d0
mov eax, dword [esi + 0x34]
add edi, 0xa
cdq
sub eax, edx
add ebp, 0x14
sar eax, 1
add eax, 0xa
cmp edi, eax
jle 0x40c3ba
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.00434c6a
mov ecx, dword [esp + 0x28]
pop ebp
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x40cc50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x88
push ebx
mov ebx, ecx
push ebp
push esi
lea ebp, [ebx + 0x28]
push 0x4496a8
mov ecx, ebp
call fcn.0042f1d7
mov eax, dword [ebx + 0xd8]
test eax, eax
jne 0x40cc80
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 4
cmp eax, 1
jne 0x40ccc7
mov eax, dword [ebx + 0x84]
inc eax
mov dword [ebx + 0x84], eax
je 0x40cd1f
mov ecx, dword [esp + 0x98]
push 0
push 0x18
push 0
push 0
call fcn.0040efe0
pop esi
mov dword [ebx + 0x84], 0xffffffff
pop ebp
mov eax, 1
pop ebx
add esp, 0x88
ret 4
cmp eax, 2
jne 0x40ccdb
mov ecx, dword [ebx + 0x84]
xor eax, eax
test ecx, ecx
sete al
jmp 0x40cd19
mov ecx, dword [ebx + 0x18]
test ecx, ecx
je 0x40ccfe
call fcn.0041e2df
cdq
idiv dword [ebx + 0xd8]
cmp edx, dword [ebx + 0x84]
je 0x40cce2
mov dword [ebx + 0x84], edx
jmp 0x40cd1f
mov ecx, dword [ebx + 0x84]
inc ecx
mov dword [ebx + 0x84], ecx
mov esi, ecx
xor ecx, ecx
cmp esi, eax
setge cl
dec ecx
and ecx, esi
mov eax, ecx
mov dword [ebx + 0x84], eax
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceA]
xor edx, edx
mov dx, word [ebx + 0x84]
push 0x1388
push edx
push 0
call esi
test eax, eax
jne 0x40cd48
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 4
mov ecx, dword [esp + 0x98]
push 0
push 0
push eax
call fcn.0040f290
test al, al
jne 0x40cd6b
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x88
ret 4
xor eax, eax
push edi
mov ax, word [ebx + 0x84]
push 0x1450
push eax
push 0
call esi
mov esi, eax
test esi, esi
je 0x40cde3
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40cde3
cmp esi, 0x88
jne 0x40cde3
mov ecx, 0x22
mov esi, eax
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x54]
push ecx
mov ecx, ebp
call fcn.0042f1d7
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
lea edi, [ebx + 0x2c]
mov ecx, 0xf
lea esi, [esp + 0x10]
mov dword [ebx + 0x68], edx
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x6c], eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x88
ret 4

Function at 0x40d3d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
lea eax, [esp + 4]
push esi
push eax
push 0x104
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [esp + 0x110]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.0042f108
mov eax, esi
pop esi
add esp, 0x108
ret

Function at 0x40d410
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
push esi
lea eax, [esp + 8]
push 0x104
push eax
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, dword [esp + 0x110]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.0042f108
mov eax, esi
pop esi
add esp, 0x108
ret
Function at 0x40f290
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x438b18
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
mov ebp, dword [esp + 0x38]
push esi
push edi
push ebx
mov edi, ecx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
xor ebx, ebx
cmp eax, ebx
je 0x40f330
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
je 0x40f355
mov ebp, 0x43be20
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], esi
mov byte [esp + 0x1c], bl
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x38], ebx
call fcn.0040f440
mov byte [esp + 0x38], al
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0x10], ebp
je 0x40f32a
cmp byte [esp + 0x1c], bl
je 0x40f32a
push eax
call fcn.0041ef58
add esp, 4
mov al, byte [esp + 0x38]
jmp 0x40f357
lea edx, [edi + 0x40]
mov edi, str.Unable_to_load_resource_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor al, al
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc

Function at 0x411f90
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x411fc0
push esi
call fcn.00415370
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x411fb9
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x412043
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x41202f
mov eax, dword [esi + 8]
test eax, eax
je 0x411fe4
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x41202b
cmp eax, 2
je 0x41202f
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x411fd7
cmp eax, 3
je 0x41200a
cmp eax, 1
jne 0x411fd7
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x411fd7
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x411fd7
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.00412070
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x412063
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.00412070
add esp, 4
pop esi
ret
Function at 0x42d290
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0041f340
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x42d35b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x42d35b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x42d30e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x42d319
or bh, 8
and edi, 0x8000000
je 0x42d334
mov eax, dword [0x44ce7c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x42d35b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42d730
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x42d75b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x42d77f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x42d79a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x430669
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x43068b
cmp dword [edi + 0x3c], 0
jne 0x43068b
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00436a09
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.004306b8
pop edi
pop esi
pop ebx
ret 8

Function at 0x4309f8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x438dec
call fcn.00420084
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.00436a09
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x430a37
call fcn.00436a09
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x430a45
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x430a53
or eax, 0xffffffff
jmp 0x430b3b
mov ecx, esi
call fcn.0043096e
mov dword [ebp - 0x14], eax
call fcn.004317a7
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x430a8a
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x430a8a
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0043175b
push dword [ebp - 0x14]
call fcn.0043128d
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00430706
cmp eax, edi
je 0x430afd
test byte [esi + 0x24], 0x10
je 0x430acb
push 4
mov ecx, esi
pop ebx
call fcn.00433a32
test ah, 1
je 0x430ac3
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.00433423
cmp dword [esi + 0x1c], edi
je 0x430afd
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00433aa8
jmp 0x430afd
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x430b11
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x430b2a
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x430b2a
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.004309a8
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x431c9e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x431cd6
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0042f487
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0042f45f
jmp 0x431ce2
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4332d1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x433313
call fcn.00436a09
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x433313
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x43330a
xor eax, eax
jmp 0x43331b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00433321
pop edi
pop esi
pop ebx
ret 4
Function at 0x409e457f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push esi
push 0x50
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x409e4651
push 2
push 0x400
push 0x409f2278
mov ecx, esi
call fcn.409ef0d1
push 8
push 0x2000
push 0x409f2280
lea ecx, [esi + 0x20]
call fcn.409ef0d1
and dword [esi + 0x40], 0
and dword [esi + 0x44], 0
and dword [esi + 0x48], 0
push 0x409e13c8
call 0x409fbff2
test eax, eax
jne 0x409e463d
push 0x409e13b0
call 0x409fbff2
test eax, eax
jne 0x409e463d
push 0x409e1398
call fcn.409e443a
test eax, eax
jne 0x409e463d
push 0x409e1388
call fcn.409e443a
test eax, eax
jne 0x409e463d
push 0x409e1370
call fcn.409e443a
test eax, eax
jne 0x409e463d
push 0x409e1354
call fcn.409e443a
test eax, eax
je 0x409e4626
or dword [esi + 0x44], 0x1000000
jmp 0x409e4644
push 0x409e133c
call fcn.409e443a
test eax, eax
je 0x409e4644
or dword [esi + 0x44], 0x10000
jmp 0x409e4644
or dword [esi + 0x44], 0x100000
push esi
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, esi
neg eax
sbb eax, eax
and eax, 0x7ff8fff2
add eax, 0x8007000e
pop esi
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 0x409ee66f
Capabilities:
Get thread local storage value

Disassembly:
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x409ee6b4
mov eax, dword [eax + 0x4c]
test eax, eax
je 0x409ee6b4
push esi
push edi
push 8
lea esi, [eax + 0x10]
pop edi
mov eax, dword [esi + 4]
test eax, eax
je 0x409ee6ac
cmp dword [esi], 0
jne 0x409ee6ac
push esi
push dword [esi + 0xc]
push dword [esi + 8]
push eax
lea eax, [esi - 0x10]
push eax
call dword [sym.imp.ole32.dll_CoRegisterClassObject]
add esi, 0x20
dec edi
jne 0x409ee68e
pop edi
pop esi
ret

Function at 0x409ee8f2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x18]
and dword [eax], 0
push ebx
push dword [section..data]
mov dword [ebp - 4], 0x8000ffff
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x409ee993
mov eax, dword [ebx + 0x4c]
push esi
push edi
test eax, eax
jne 0x409ee949
mov esi, 0x100
push esi
call fcn.409ef274
mov edi, eax
xor eax, eax
pop ecx
cmp edi, eax
je 0x409ee942
push esi
push eax
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, edi
mov dword [ebx + 0x4c], eax
test eax, eax
je 0x409ee991
xor ebx, ebx
lea ecx, [eax + 0x14]
cmp dword [ecx], 0
je 0x409ee95e
inc ebx
add ecx, 0x20
cmp ebx, 8
jl 0x409ee94e
jmp 0x409ee991
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov ecx, ebx
shl ecx, 5
add eax, ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x14], ecx
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [eax + 0x18], edx
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x1c], edx
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov eax, dword [ebp + 0x18]
and dword [ebp - 4], 0
not ebx
mov dword [eax], ebx
pop edi
pop esi
mov eax, dword [ebp - 4]
pop ebx
leave
ret 0x14