joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40edb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4894d0
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x4b701c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x234], esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x234], esi
cmp dword [edi + 0x10], 0
jne 0x40ee15
mov dword [esi], 0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x40ef28
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00455ce0
add esp, 0xc
mov dword [ebp - 0x234], 0x208
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push str.CC_FLASH
push str.SoftwareTencentQQBrowserPrivateCfg
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40edf7
cmp ax, word [ebp - 0x218]
jne 0x40ee7b
mov dword [esi], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x40ef28
push edi
lea ecx, [ebp - 0x230]
call fcn.00404570
push 0x11
push str.User_DataFlash_
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0
call fcn.00404760
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40eeb0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00404760
push 0x13
push str.pepflashplayer.dll
lea ecx, [ebp - 0x230]
call fcn.00404760
test ebx, ebx
je 0x40ef0f
lea edx, [ebp - 0x218]
lea edi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40eef1
sub edx, edi
lea eax, [ebp - 0x218]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.00408440
lea eax, [ebp - 0x230]
mov ecx, esi
push eax
call fcn.004085f0
lea ecx, [ebp - 0x230]
call fcn.004087f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00453c11
mov esp, ebp
pop ebp
ret
Function at 0x411b70
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489705
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4b701c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 0x698]
mov byte [esi + 0x7fe], 1
test edi, edi
je 0x411bda
mov eax, dword [edi + 0x50]
mov bl, byte [edi + 0x2c]
mov byte [edi + 0x2c], 0
test eax, eax
je 0x411bcd
push 0
push 0
push 0x401
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
test bl, bl
je 0x411bda
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 0x24]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [esi + 0x674]
call edi
push 0
lea eax, [ebp - 0x28]
push 9
push eax
call fcn.00483c80
add esp, 0xc
push 0
lea edx, [ebp - 0x28]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.0040dba0
add esp, 4
mov byte [ebp - 4], 1
cmp dword [ebp - 0x30], 0
jne 0x411c43
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00411d00
test al, al
je 0x411c3f
push 0
push dword [esi + 0x678]
call edi
push 4
mov ecx, esi
call fcn.004126f0
jmp 0x411c69
xor bl, bl
jmp 0x411c6b
push 0
push dword [esi + 0x678]
call edi
push 5
push dword [esi + 0x67c]
call edi
push 0
push 6
push 0x7e9
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov bl, 1
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x411ca1
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411c97
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411cf5
push edx
push ecx
call fcn.00453c42
add esp, 8
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x411cd7
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411ccd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411cf5
push edx
push ecx
call fcn.00453c42
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00453c11
mov esp, ebp
pop ebp
ret
call fcn.004584af
int3
Function at 0x411fb0
Capabilities:
Check if file exists
Delete file
Download url
Move file
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48978d
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x4b701c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0
push 3
push 0x7e8
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
cmp dword [ebx + 0x4c], 8
lea edi, [ebx + 0x38]
mov eax, edi
jb 0x411fff
mov eax, dword [edi]
lea ecx, [ebp - 0xac]
push 3
mov dword [ebp - 0xb0], ecx
lea ecx, [ebp - 0xb0]
push eax
call fcn.00417390
push dword [ebp - 0xb0]
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
mov eax, dword [ebp - 0xb0]
lea ecx, [ebp - 0xac]
cmp eax, ecx
je 0x41203e
push eax
call fcn.004585e1
add esp, 4
push edi
lea ecx, [ebp - 0x28]
call fcn.00404570
push 4
push str..tmp
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00404760
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebx + 8]
cmovae ecx, dword [ebp - 0x28]
cmp dword [eax + 0x14], 8
jb 0x412085
mov eax, dword [eax]
push ebx
push 0
push ecx
push eax
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov esi, eax
test esi, esi
js 0x4120dc
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4120b5
mov esi, 0x8000ffff
jmp 0x4120dc
cmp dword [edi + 0x14], 8
jb 0x4120bd
mov edi, dword [edi]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 1
cmovae eax, dword [ebp - 0x28]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
mov ecx, 0x8000ffff
cmove esi, ecx
not esi
shr esi, 0x1f
push esi
push 5
push 0x7e8
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x412128
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41211e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412144
push edx
push ecx
call fcn.00453c42
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00453c11
mov esp, ebp
pop ebp
ret
call fcn.004584af
int3
Function at 0x4143c0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x7bc]
test eax, eax
je 0x414404
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4143ee
push 0
push dword [esi + 0x7bc]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x7bc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x7bc], 0
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop esi
ret
Function at 0x4164c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4bc8cc]
sub esp, 0x20
test al, 1
jne 0x4164d7
or eax, 1
mov dword [0x4bc8cc], eax
cmp dword [0x4bc8c4], 2
je 0x41665e
push esi
mov ecx, 1
mov edx, 0x4bc8c4
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x41663a
push ebx
push edi
push 8
call fcn.004585d6
mov edi, eax
add esp, 4
test edi, edi
je 0x416667
push 0
mov dword [edi], 0x60
mov dword [edi + 4], 0x60
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
test ebx, ebx
je 0x41661e
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x58
push ebx
call esi
push 0x5a
push ebx
mov dword [edi], eax
call esi
mov dword [edi + 4], eax
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push 0
push str.SoftwareTencentQQBrowserAdvanced
push 0x80000001
mov dword [ebp - 0x20], vtable.Util::RegKey.0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x416584
mov dword [ebp - 0x1c], 0
jmp 0x4165e4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4165e4
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], 4
push ecx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], 4
push ecx
lea ecx, [ebp - 8]
mov dword [ebp - 0x10], 0
push ecx
push 0
push str.DisableDpi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4165e4
mov eax, dword [ebp - 8]
cmp eax, 4
je 0x4165cb
cmp eax, 3
jne 0x4165e4
cmp dword [ebp - 0xc], 4
jne 0x4165e4
cmp dword [ebp - 0x10], 0
je 0x4165e4
mov dword [edi], 0x60
mov dword [edi + 4], 0x60
push ebx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], vtable.Util::RegKey.0
test eax, eax
je 0x416609
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41661e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], 0
mov dword [0x4bc8c8], edi
mov eax, dword [0x4bc8c8]
pop edi
pop ebx
mov dword [0x4bc8c4], 2
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [0x4bc8c4], 2
je 0x41665d
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax]
push 0
call esi
cmp dword [0x4bc8c4], 2
jne 0x416650
pop esi
mov eax, dword [0x4bc8c8]
mov esp, ebp
pop ebp
ret
push 0x4b34a8
lea eax, [ebp - 1]
push eax
call fcn.00456e9d
int3

Function at 0x418b30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x418b89
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x418b89
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x418b78
cmp esi, edx
jae 0x418b89
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x418b66
cmp esi, edx
jae 0x418b89
cmp word [esi], 0
je 0x418b89
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x419acc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 8
mov eax, 0x489d3c
call fcn.004544ad
mov dword [ebp - 0x10], ecx
movzx ecx, word [ebp + 0xc]
test ecx, ecx
jne 0x419aea
xor bl, bl
jmp 0x419c63
mov eax, dword [ebp + 0x10]
xor ebx, ebx
cmp dword [eax + 0x10], ebx
jne 0x419bae
push 0x18
call fcn.00422990
mov dword [ebp + 0x10], eax
pop ecx
test eax, eax
je 0x419b1b
mov ecx, eax
call fcn.004195b0
mov esi, eax
mov edi, eax
test esi, esi
je 0x419b1f
inc dword [esi + 4]
jmp 0x419b1f
mov edi, ebx
mov esi, ebx
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x419b57
mov dword [eax], vtable.Gdiplus::Bitmap.0
lea eax, [ebp + 0x10]
push eax
movzx eax, word [ebp + 0xc]
push eax
push dword [ebp + 8]
mov dword [ebp + 0x10], ebx
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromResource]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ecx + 4], eax
jmp 0x419b59
mov ecx, ebx
mov dword [edi + 0xc], ecx
test ecx, ecx
jne 0x419b79
dec dword [esi + 4]
cmp dword [esi + 4], ebx
jg 0x419c63
push 1
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
jmp 0x419c63
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 8]
inc dword [esi + 4]
push eax
mov dword [ebp + 8], edi
call fcn.00409e60
dec dword [esi + 4]
xor ebx, ebx
inc ebx
cmp dword [esi + 4], 0
jg 0x419b9e
mov eax, dword [edi]
mov ecx, edi
push ebx
call dword [eax]
dec dword [esi + 4]
cmp dword [esi + 4], 0
jg 0x419c63
push ebx
jmp 0x419b6e
cmp dword [eax + 0x14], 8
jb 0x419bb6
mov eax, dword [eax]
push eax
push ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x419c63
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x419c63
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [ebp + 8]
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0xc], ebx
je 0x419c5c
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x419c5c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x419c5c
push dword [ebp - 0x14]
push dword [ebp + 0xc]
push eax
call fcn.00455760
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [ebp + 8], ebx
lea eax, [ebp + 8]
mov dword [ebp - 4], ebx
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
call fcn.00419a2f
or dword [ebp - 4], 0xffffffff
mov bl, al
mov eax, dword [ebp + 8]
test eax, eax
je 0x419c5c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov al, bl
call fcn.0045448a
ret 0xc
Function at 0x41b758
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x4bc7c8], 2
push ebx
mov ebx, ecx
jne 0x41b7f8
mov eax, dword [0x4bc7cc]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x41b7f7
push esi
mov esi, dword [edi]
jmp 0x41b789
cmp dword [esi + 4], ebx
je 0x41b790
add esi, 8
cmp esi, dword [edi + 4]
jne 0x41b781
jmp 0x41b7f6
cmp esi, dword [edi + 4]
je 0x41b7f6
push dword [esi]
push 0
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [edi + 4]
add esi, 8
cmp esi, ecx
je 0x41b7be
mov eax, dword [esi]
mov dword [esi - 8], eax
mov eax, dword [esi + 4]
mov dword [esi - 4], eax
add esi, 8
cmp esi, ecx
jne 0x41b7a9
mov ecx, dword [edi + 4]
lea eax, [ecx - 8]
mov dword [edi + 4], eax
cmp dword [edi], eax
jne 0x41b7f6
mov ecx, edi
call fcn.0041cc0c
push 0xc
push edi
call fcn.00453c42
cmp dword [0x4bc7c8], 2
pop ecx
pop ecx
je 0x41b7e7
call fcn.0041cc8c
mov eax, dword [0x4bc7cc]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop edi
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
call fcn.0041b758
push 0x41b8a4
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.USER32.dll_SetTimer]
cmp dword [0x4bc7c8], 2
mov ebx, eax
je 0x41b82c
call fcn.0041cc8c
mov eax, dword [0x4bc7cc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x41b878
push 0xc
call fcn.00422990
mov esi, eax
pop ecx
test esi, esi
je 0x41b85a
and dword [esi], 0
and dword [esi + 4], 0
and dword [esi + 8], 0
jmp 0x41b85c
xor esi, esi
cmp dword [0x4bc7c8], 2
je 0x41b86a
call fcn.0041cc8c
mov eax, dword [0x4bc7cc]
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esi + 4]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], edi
cmp eax, dword [esi + 8]
je 0x41b891
mov dword [eax], ebx
mov dword [eax + 4], edi
add dword [esi + 4], 8
jmp 0x41b89d
lea ecx, [ebp - 0xc]
push ecx
push eax
mov ecx, esi
call fcn.0041cd07
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41bbcd
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x24
mov eax, 0x489e7c
call fcn.004544ad
mov ebx, ecx
mov eax, dword [ebx]
call dword [eax + 8]
cmp dword [0x4bc7d0], 2
mov dword [ebp - 0x10], eax
je 0x41bbf1
call fcn.0041cc32
mov eax, dword [0x4bc7d4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x41bc5b
push 8
call fcn.00422990
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
xor eax, eax
mov dword [ebp - 4], eax
test esi, esi
je 0x41bc39
push 0x18
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.00408260
pop ecx
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
jmp 0x41bc3b
mov esi, eax
or dword [ebp - 4], 0xffffffff
cmp dword [0x4bc7d0], 2
je 0x41bc4d
call fcn.0041cc32
mov eax, dword [0x4bc7d4]
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0041d1e8
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x10]
cmp byte [eax + 0xd], 0
jne 0x41bc83
cmp edi, dword [eax + 0x10]
jb 0x41bc83
cmp eax, dword [esi]
je 0x41bc83
xor al, al
jmp 0x41bca1
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], edi
push ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x18], ebx
push ecx
mov ecx, esi
call fcn.0041d3ba
push edi
call dword [sym.imp.USER32.dll_SetCapture]
mov al, 1
call fcn.0045448a
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x4bc7d0], 2
push ebx
push esi
push edi
mov edi, ecx
jne 0x41bd67
mov eax, dword [0x4bc7d4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x41bd67
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
mov ebx, eax
mov ecx, esi
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0041d1e8
mov ecx, dword [ebp - 8]
cmp byte [ecx + 0xd], 0
jne 0x41bd67
cmp ebx, dword [ecx + 0x10]
jb 0x41bd67
cmp ecx, dword [esi]
je 0x41bd67
cmp dword [ecx + 0x14], edi
jne 0x41bd67
push ecx
mov ecx, esi
call fcn.0041cf11
push 0x18
push eax
call fcn.00453c42
cmp dword [esi + 4], 0
pop ecx
pop ecx
jne 0x41bd4e
mov ecx, esi
call fcn.0041cbf1
push 8
push esi
call fcn.00453c42
cmp dword [0x4bc7d0], 2
pop ecx
pop ecx
je 0x41bd3f
call fcn.0041cc32
mov eax, dword [0x4bc7d4]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp byte [ebp + 8], 0
je 0x41bd59
xor eax, eax
inc eax
jmp 0x41bd69
call dword [sym.imp.USER32.dll_ReleaseCapture]
neg eax
sbb eax, eax
neg eax
jmp 0x41bd69
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41bd70
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x4bc7d0], 2
push esi
mov dword [ebp - 4], ecx
jne 0x41bdbf
mov eax, dword [0x4bc7d4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x41bdbf
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0041d1e8
mov eax, dword [ebp - 8]
cmp byte [eax + 0xd], 0
jne 0x41bdbf
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0x10]
jb 0x41bdbf
cmp eax, dword [esi]
je 0x41bdbf
mov eax, dword [eax + 0x14]
jmp 0x41bdc1
xor eax, eax
pop esi
leave
ret

Function at 0x41cc32
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ecx
xor ecx, ecx
mov edx, 0x4bc7d0
inc ecx
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x41cc81
push esi
push 4
call fcn.00422990
mov esi, eax
mov dword [ebp - 4], esi
pop ecx
test esi, esi
je 0x41cc64
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
jmp 0x41cc66
xor esi, esi
mov dword [0x4bc7d4], esi
mov dword [0x4bc7d0], 2
pop esi
leave
ret
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x4bc7d0], 2
jne 0x41cc79
leave
ret

Function at 0x41cc8c
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ecx
xor ecx, ecx
mov edx, 0x4bc7c8
inc ecx
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x41ccdb
push esi
push 4
call fcn.00422990
mov esi, eax
mov dword [ebp - 4], esi
pop ecx
test esi, esi
je 0x41ccbe
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
jmp 0x41ccc0
xor esi, esi
mov dword [0x4bc7cc], esi
mov dword [0x4bc7c8], 2
pop esi
leave
ret
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x4bc7c8], 2
jne 0x41ccd3
leave
ret

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

Disassembly:
push esi
mov esi, ecx
call fcn.0041fa4e
test al, al
jne 0x41f6e1
mov ecx, esi
pop esi
jmp fcn.0041b758
pop esi
ret

Function at 0x42027e
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4b701c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x5c
xor ebx, ebx
mov esi, ecx
push ebx
push esi
call fcn.00455ce0
add esp, 0xc
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
push esi
push 0x5c
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
push 0x118
lea eax, [ebp - 0x11c]
push ebx
push eax
call fcn.00455ce0
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor ecx, ecx
inc ecx
cmp dword [ebp - 0x11c], 6
jne 0x4202f4
cmp byte [ebp - 6], cl
jne 0x420301
mov bl, cl
cmp dword [ebp - 0x11c], 6
movzx ebx, bl
cmova ebx, ecx
mov ecx, str.Tahoma
test bl, bl
mov eax, 0x4a56dc
cmove eax, ecx
push eax
lea eax, [esi + 0x1c]
push 0x20
push eax
call fcn.004636cf
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop esi
pop ebx
call fcn.00453c11
leave
ret
Function at 0x4215b4
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x28], ebx
je case.default.0x421618
mov edx, dword [ebp + 0x10]
movzx eax, dx
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [esi + 4]
shr edx, 0x10
mov dword [ebp - 4], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.004216c0
mov edi, eax
test edi, edi
jne 0x421607
push esi
push 0x421866
call dword [sym.imp.USER32.dll_EnumWindows]
jmp case.default.0x421618
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
lea eax, [edi - 1]
cmp eax, 7
ja case.default.0x421618
jmp dword [eax*4 + 0x4216a0]
push dword [esi + 0x98]
call dword [sym.imp.USER32.dll_SetCursor]
xor eax, eax
cmp edi, 2
setne al
add eax, 0xf001
jmp 0x421686
push dword [esi + 0x9c]
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, 0xf006
cmp edi, 1
lea ecx, [eax - 3]
jmp 0x421683
push dword [esi + 0xa0]
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, 0xf008
cmp edi, 5
lea ecx, [eax - 4]
jmp 0x421683
push dword [esi + 0xa4]
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, 0xf007
cmp edi, 6
lea ecx, [eax - 2]
cmove eax, ecx
push ebx
push eax
push 0x112
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10