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

Disassembly:
push 0x18
mov eax, 0x101c3cfc
call fcn.1018ecb0
mov eax, ecx
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp + 0x10]
xor edi, edi
mov esi, dword [ebp + 0x14]
push edi
mov dword [ebx], edi
mov dword [esi], edi
cmp dword [eax + 0x58], edi
je 0x100c2662
push dword [ebp + 8]
call fcn.100c28da
mov dword [ebp - 0x10], eax
test eax, eax
je 0x100c26e8
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
push ecx
push edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push ecx
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x14], edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x14]
mov dword [esi], ecx
test eax, eax
jne 0x100c264b
push ecx
call fcn.1007427f
pop ecx
lea ecx, [ebp - 0x14]
mov dword [ebx], eax
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100c264b
xor edi, edi
inc edi
jmp 0x100c2655
push dword [ebx]
call fcn.1007427a
pop ecx
mov dword [ebx], edi
lea ecx, [ebp - 0x24]
call fcn.100bfb7c
jmp 0x100c26e6
mov eax, dword [eax]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov esi, dword [eax + 0x84]
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call dword [0x101cdb00]
mov ecx, dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 1
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x100c26de
mov esi, dword [ebp + 0x14]
shr ecx, 1
push ecx
mov dword [esi], ecx
call fcn.1007427f
mov dword [ebx], eax
pop ecx
cmp dword [esi], edi
jbe 0x100c26d8
lea esi, [edi + edi]
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x10]
call fcn.10039700
push esi
lea ecx, [ebp - 0x10]
mov bl, al
call fcn.10039700
mov ecx, dword [ebp + 0x10]
shl bl, 4
sub bl, 0x51
add al, bl
mov ecx, dword [ecx]
mov byte [edi + ecx], al
inc edi
mov eax, dword [ebp + 0x14]
cmp edi, dword [eax]
jb 0x100c26a6
mov eax, dword [ebp - 0x10]
xor edi, edi
inc edi
lea ecx, [eax - 0x10]
call fcn.10002420
mov eax, edi
call fcn.1018ec7e
ret 0x10

Function at 0x100c26f0
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x100c2743
push esi
push dword [ebp + 8]
call fcn.100c28da
mov edi, eax
test edi, edi
je 0x100c273e
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x100c273e
mov eax, dword [ebp - 8]
jmp 0x100c2755
mov eax, dword [ebp + 0x10]
jmp 0x100c2755
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
leave
ret 0xc
Function at 0x100c275b
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c3d29
mov eax, dword fs:[0]
push eax
mov eax, 0x201c
call fcn.1018f430
mov eax, dword [0x10234000]
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, dword [ebp + 8]
xor eax, eax
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x201c], edi
mov dword [ebp - 0x2024], edx
cmp dword [ecx + 0x58], eax
je 0x100c288c
push eax
push esi
call fcn.100c28da
mov esi, eax
test esi, esi
jne 0x100c27c3
push ebx
jmp 0x100c28b5
lea ecx, [ebp - 0x2014]
call fcn.10003770
xor ecx, ecx
lea eax, [ebp - 0x2018]
push eax
push ecx
lea eax, [ebp - 0x2020]
mov dword [ebp - 4], ecx
push eax
push ecx
push dword [ebp - 0x2024]
mov dword [ebp - 0x2020], ecx
push esi
mov dword [ebp - 0x2018], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x201c], eax
test eax, eax
jne 0x100c284b
mov eax, dword [ebp - 0x2018]
lea ecx, [ebp - 0x2014]
shr eax, 1
push eax
call fcn.10003af0
lea ecx, [ebp - 0x2018]
push ecx
push eax
lea eax, [ebp - 0x2020]
push eax
push 0
push dword [ebp - 0x2024]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x2014]
mov dword [ebp - 0x201c], eax
call fcn.10033cb7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x201c], 0
jne 0x100c2879
mov esi, dword [ebp - 0x2014]
add esi, 0xfffffff0
push esi
call fcn.10026638
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.10002420
jmp 0x100c28bc
push ebx
mov ecx, edi
call fcn.10025db0
mov ecx, dword [ebp - 0x2014]
lea ecx, [ecx - 0x10]
jmp 0x100c2872
push dword [ecx + 0x6c]
lea eax, [ebp - 0x2010]
test ebx, ebx
push 0x1000
push eax
mov eax, 0x101ce590
cmovne eax, ebx
push eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x2010]
push eax
mov ecx, edi
call fcn.10025db0
mov eax, edi
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.1018ec70
leave
ret 0x10
Function at 0x100c29f1
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x58], esi
je 0x100c2a3e
push esi
push dword [ebp + 8]
call fcn.100c28da
mov edi, eax
test edi, edi
je 0x100c2ac2
push dword [ebp + 0x14]
push ebx
push 3
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
jmp 0x100c2ac2
mov eax, dword [ebp + 0x14]
push 2
pop ecx
push 0xffffffffffffffff
lea eax, [eax*2 + 1]
mul ecx
pop ecx
cmovb eax, ecx
push eax
call fcn.1007427f
mov edx, dword [ebp + 0x14]
pop ecx
mov ecx, eax
mov dword [ebp - 8], ecx
test edx, edx
je 0x100c2a94
mov dword [ebp - 4], 0x41
mov al, byte [ebx + esi]
and al, 0xf
movzx eax, al
add ax, word [ebp - 4]
mov word [ecx + esi*4], ax
mov al, byte [ebx + esi]
shr al, 4
movzx eax, al
add ax, word [ebp - 4]
mov word [ecx + esi*4 + 2], ax
inc esi
cmp esi, edx
jb 0x100c2a6d
xor eax, eax
mov word [ecx + esi*4], ax
mov eax, dword [edi]
push ecx
push dword [ebp + 0xc]
mov esi, dword [eax + 0x88]
mov ecx, esi
push dword [ebp + 8]
call dword [0x101cdb00]
mov ecx, edi
call esi
push dword [ebp - 8]
mov esi, eax
call fcn.1007427a
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x100c3b09
Capabilities:
Initialize winsock library

Disassembly:
push 0x198
mov eax, 0x101c3eed
call fcn.1018ece3
mov eax, dword [ebp + 8]
mov ecx, 0x1023c724
push 0x100c3c6d
mov dword [ebp - 0x1a4], eax
call fcn.10109ff4
mov ebx, eax
test ebx, ebx
je 0x100c3c2a
xor esi, esi
cmp dword [ebx + 0xc], esi
jne 0x100c3b7b
mov eax, dword [ebp - 0x1a4]
lea edi, [ebp - 0x1a0]
test eax, eax
cmovne edi, eax
push edi
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x100c3b69
xor eax, eax
jmp 0x100c3c22
cmp byte [edi], 1
jne 0x100c3ba7
cmp byte [edi + 1], 1
jne 0x100c3ba7
mov dword [ebx + 0xc], 0x100c3c30
call fcn.1003d4ca
mov edi, eax
cmp dword [edi + 0x30], esi
jne 0x100c3bc3
push 0x1c
call fcn.1002f37e
pop ecx
mov dword [ebp - 0x1a4], eax
mov dword [ebp - 4], esi
test eax, eax
je 0x100c3bba
push 0xa
mov ecx, eax
call fcn.101099a9
jmp 0x100c3bbc
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0x276c
call dword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x100c3b62
mov eax, esi
or dword [ebp - 4], 0xffffffff
mov dword [edi + 0x30], eax
xor ebx, ebx
inc ebx
cmp dword [edi + 0x34], esi
jne 0x100c3bf4
push 0x1c
call fcn.1002f37e
pop ecx
mov dword [ebp - 0x1a4], eax
mov dword [ebp - 4], ebx
test eax, eax
je 0x100c3beb
push 0xa
mov ecx, eax
call fcn.101099a9
jmp 0x100c3bed
mov eax, esi
or dword [ebp - 4], 0xffffffff
mov dword [edi + 0x34], eax
cmp dword [edi + 0x38], esi
jne 0x100c3c20
push 0x1c
call fcn.1002f37e
pop ecx
mov dword [ebp - 0x1a4], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x100c3c1d
push 0xa
mov ecx, eax
call fcn.1010ebd2
mov esi, eax
mov dword [edi + 0x38], esi
mov eax, ebx
call fcn.1018ec92
ret 4
call fcn.1003bca0
int3
Function at 0x100c3e6b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x84], 0
mov esi, dword [ebx + 0x8c]
mov edi, dword [ebx + 0x88]
je 0x100c3eb3
call fcn.1003d497
push 5
push dword [ebx + 0x84]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x100c3eb3
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x100c3ec0
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor eax, eax
inc eax
test esi, esi
je 0x100c3efc
mov edx, 0xffff
lea ecx, [esi + 0xc]
cmp word [esi + 2], dx
jne 0x100c3edf
movzx edi, word [esi + 0x12]
movzx edx, word [esi + 0x14]
jmp 0x100c3ee8
movzx edx, word [ecx]
mov ecx, esi
movzx edi, word [esi + 0xa]
test dword [ecx], 0x1801
jne 0x100c3efa
test di, di
jne 0x100c3efa
test dx, dx
je 0x100c3efc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100c3f01
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [esi + 0x84], edi
test edi, 0xffff0000
jne 0x100c3f2c
cmp dword [esi + 0x80], 0
jne 0x100c3f2c
movzx eax, di
mov dword [esi + 0x80], eax
call fcn.1003d497
push 5
push edi
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x100c3f5c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100c3f5c
push ebx
push dword [ebp + 0xc]
mov ecx, esi
push eax
call fcn.100c41c8
jmp 0x100c3f5e
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x100c3f65
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
call fcn.1003d497
push 5
push dword [ebp + 8]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x100c3fa5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100c3fa5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.100c3fad
jmp 0x100c3fa7
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x100c429d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x101c3f49
call fcn.1018ed19
mov edi, ecx
mov dword [ebp - 0x24], edi
mov ebx, dword [edi + 0x8c]
mov esi, dword [edi + 0x88]
mov dword [ebp - 0x18], ebx
call fcn.1003d497
cmp dword [edi + 0x84], 0
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x20], eax
je 0x100c42fc
call fcn.1003d497
push 5
push dword [edi + 0x84]
mov ebx, dword [eax + 0xc]
push ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x100c4310
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp - 0x18]
mov esi, eax
test esi, esi
je 0x100c430c
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 0x18], eax
test ebx, ebx
jne 0x100c4318
or eax, 0xffffffff
jmp 0x100c446a
mov ecx, edi
call fcn.100c48a7
mov ebx, eax
mov dword [ebp - 0x2c], ebx
call fcn.100300d3
xor esi, esi
and dword [ebp - 0x1c], esi
and dword [ebp - 0x28], esi
mov dword [ebp - 0x14], esi
test ebx, ebx
je 0x100c43a4
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebx, eax
je 0x100c43a4
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x100c43a4
push esi
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x14], 1
call fcn.100044d0
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x100c43a1
mov ecx, dword [esi]
mov esi, dword [ecx + 0x150]
mov ecx, esi
call dword [0x101cdb00]
mov ecx, dword [ebp - 0x1c]
call esi
test eax, eax
je 0x100c43a1
mov esi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.10036b91
test eax, eax
je 0x100c43a1
push 0
mov ecx, esi
call fcn.10036496
mov dword [ebp - 0x28], 1
mov esi, dword [ebp - 0x14]
and dword [ebp - 4], 0
push edi
call fcn.1002fd5c
push ebx
call fcn.1003157d
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.100c4240
test eax, eax
jne 0x100c43ed
cmp dword [edi + 0x9c], eax
jne 0x100c43ed
call fcn.1003d497
push ebx
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
call fcn.1003157d
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.100c4240
and dword [edi + 0x9c], 0
jmp 0x100c4418
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x28], 0
je 0x100c442c
mov ecx, dword [ebp - 0x1c]
push 1
call fcn.10036496
test esi, esi
je 0x100c4439
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
test ebx, ebx
je 0x100c444f
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [edi + 0x20]
jne 0x100c444f
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [edi]
mov esi, dword [eax + 0x60]
mov ecx, esi
call dword [0x101cdb00]
mov ecx, edi
call esi
mov ecx, edi
call fcn.100c485e
mov eax, dword [edi + 0x68]
call fcn.1018ec7e
ret
Function at 0x100c5f99
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], edi
je 0x100c5fde
call fcn.1003d497
push 0xf0
push dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x100c5fdb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100c6025
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
push ebx
xor ebx, ebx
inc ebx
test edi, edi
je 0x100c6001
mov ecx, dword [eax]
push dword [ebp + 0x10]
push edi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x101cdb00]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x100c6022
mov edx, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [edx + 0xa0]
mov ecx, esi
call dword [0x101cdb00]
mov ecx, edi
call esi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 0xc

Function at 0x100c9925
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.101a22f8
pop ecx
test eax, eax
jne 0x100c9967
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x101df814
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.10044e9d
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100c992d
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret

Function at 0x100c9af6
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 1
mov eax, dword [esi]
push 1
mov edi, dword [eax + 0xe0]
mov ecx, edi
je 0x100c9b31
push 0
call dword [0x101cdb00]
mov ecx, esi
call edi
test eax, eax
je 0x100c9b2d
xor eax, eax
inc eax
jmp 0x100c9b44
xor eax, eax
jmp 0x100c9b44
push dword [esi + 0x24]
call dword [0x101cdb00]
mov ecx, esi
call edi
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
leave
ret
Function at 0x100d4191
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
mov ecx, 0x104
mov eax, dword [esi + 4]
cmp eax, ecx
ja 0x100d4318
je 0x100d433f
sub eax, 0xa1
je 0x100d433f
sub eax, 1
je 0x100d433f
dec eax
sub eax, 1
je 0x100d433f
sub eax, 1
je 0x100d433f
dec eax
sub eax, 1
je 0x100d433f
sub eax, 1
je 0x100d433f
sub eax, 0x58
jne 0x100d437d
cmp dword [edi + 0xc0], 0xffffffff
je 0x100d433f
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x100d433f
mov eax, dword [esi + 8]
sub eax, 0x21
je 0x100d426d
sub eax, 1
jne 0x100d433f
mov eax, dword [edi + 0xc0]
lea ebx, [eax + 1]
jmp 0x100d425c
mov eax, ebx
cdq
idiv ecx
mov eax, dword [edi]
mov ecx, edx
mov dword [ebp - 4], ecx
push ecx
mov esi, dword [eax + 0x27c]
mov ecx, esi
call dword [0x101cdb00]
mov ecx, edi
call esi
test eax, eax
jne 0x100d42b9
mov eax, dword [edi + 0xc0]
inc ebx
mov ecx, dword [edi + 0xbc]
add eax, ecx
cmp ebx, eax
jl 0x100d4232
jmp 0x100d4397
mov ecx, dword [edi + 0xc0]
lea ebx, [ecx - 1]
add ebx, dword [edi + 0xbc]
cmp ebx, ecx
jle 0x100d4397
mov eax, ebx
cdq
idiv dword [edi + 0xbc]
mov eax, dword [edi]
mov ecx, edx
mov dword [ebp - 4], ecx
push ecx
mov esi, dword [eax + 0x27c]
mov ecx, esi
call dword [0x101cdb00]
mov ecx, edi
call esi
test eax, eax
jne 0x100d42b9
dec ebx
cmp ebx, dword [edi + 0xc0]
jg 0x100d4284
jmp 0x100d4397
mov eax, dword [edi]
push dword [ebp - 4]
mov dword [edi + 0x24c], 1
mov esi, dword [eax + 0x214]
mov ecx, esi
call dword [0x101cdb00]
mov ecx, edi
call esi
mov eax, dword [edi]
mov esi, dword [eax + 0x210]
mov ecx, esi
call dword [0x101cdb00]
mov ecx, edi
call esi
mov ecx, eax
call fcn.10036f65
mov eax, dword [edi]
push dword [edi + 0xc0]
mov esi, dword [eax + 0x270]
mov ecx, esi
call dword [0x101cdb00]
mov ecx, edi
call esi
and dword [edi + 0x24c], 0
jmp 0x100d4397
sub eax, 0x200
je 0x100d433f
sub eax, 1
je 0x100d433f
sub eax, 1
je 0x100d433f
dec eax
sub eax, 1
je 0x100d433f
sub eax, 1
je 0x100d433f
dec eax
sub eax, 1
je 0x100d433f
sub eax, 1
jne 0x100d437d
mov eax, dword [edi + 0xfc]
test eax, eax
je 0x100d435e
cmp dword [eax + 0x20], ebx
je 0x100d435e
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi + 0xf8]
test eax, eax
je 0x100d437d
cmp dword [eax + 0x20], ebx
je 0x100d437d
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esi + 4], 0x203
jne 0x100d439c
lea eax, [edi + 0x2250]
test eax, eax
je 0x100d4393
mov ebx, dword [eax + 0x20]
cmp dword [esi], ebx
jne 0x100d439c
xor eax, eax
inc eax
jmp 0x100d43a4
push esi
mov ecx, edi
call fcn.100fe5e8
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x101095e7
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.10036613
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x10109623
call fcn.10109804
mov dword [esi + 0xc], 1
jmp 0x10109628
call fcn.10109804
cmp dword [esi], 0
je 0x10109673
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x1010964e
push edi
call fcn.100315cb
lea ecx, [edi + 1]
push ecx
jmp 0x1010965d
push 0xff
call fcn.10003af0
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.10033cb7
pop edi
jmp 0x10109697
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x10109697
push dword [esi]
push dword [ebp - 4]
call fcn.1010c7c1
pop esi
leave
ret 0xc

Function at 0x1010975b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.10109804
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x101097a3
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.100315cb
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.10033cb7
jmp 0x101097ae
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.1010c7c1
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x1010a19b
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x101c6500
call fcn.1018ed19
mov ebx, ecx
mov dword [ebp - 0x18], ebx
lea eax, [ebx + 0x1c]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp + 8]
test edi, edi
jle 0x1010a292
cmp edi, dword [ebx + 0xc]
jge 0x1010a292
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x1010a1f2
cmp edi, dword [esi + 8]
jl 0x1010a280
cmp dword [ebp + 0xc], 0
je 0x1010a280
xor edi, edi
jmp 0x1010a224
xor edi, edi
push 0x10
mov dword [ebp - 4], edi
call fcn.10109dad
mov esi, eax
test esi, esi
je 0x1010a20c
mov dword [esi], vtable.CThreadData.0
jmp 0x1010a20e
mov esi, edi
or dword [ebp - 4], 0xffffffff
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
mov dword [esi + eax], ecx
mov dword [ebx + 0x14], esi
push 4
push dword [ebx + 0xc]
call fcn.1003728a
cmp dword [esi + 0xc], 0
pop ecx
pop ecx
jne 0x1010a240
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x1010a24c
push 2
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x1010a2b9
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push edi
push eax
call fcn.10191e30
mov eax, dword [ebx + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x1010a292
cmp edi, dword [esi + 8]
jge 0x1010a292
mov eax, dword [ebp + 0xc]
mov dword [ecx + edi*4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.1018ec7e
ret 8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.1003bcba
int3