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

Disassembly:
push 8
mov eax, 0x101c2e6b
call fcn.101947a2
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.10027f20
and dword [ebp - 4], 0
mov esi, dword [ebp + 8]
cmp esi, 0x80000000
jne 0x100c1e26
call fcn.1003f712
cmp eax, 1
jne 0x100c1e26
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push str.SoftwareClasses_
push eax
call fcn.1007f92d
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.10039629
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.100023f0
inc esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [ebp - 0x10]
mov esi, eax
add ecx, 0xfffffff0
call fcn.100023f0
mov eax, esi
call fcn.10194770
ret 0x10

Function at 0x100c1e4d
Capabilities:
Set registry value

Disassembly:
push 8
mov eax, 0x101c2e6b
call fcn.101947a2
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.10027f20
and dword [ebp - 4], 0
mov esi, dword [ebp + 8]
cmp esi, 0x80000000
jne 0x100c1eab
call fcn.1003f712
cmp eax, 1
jne 0x100c1eab
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push str.SoftwareClasses_
push eax
call fcn.1007f92d
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.10039629
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.100023f0
inc esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp - 0x10]
mov esi, eax
add ecx, 0xfffffff0
call fcn.100023f0
mov eax, esi
call fcn.10194770
ret 0x14
Function at 0x100c4913
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x101c9e8c
call fcn.101947a2
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 0x100c49bb
push dword [ebp + 8]
call fcn.100c4c33
mov dword [ebp - 0x10], eax
test eax, eax
je 0x100c4a41
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 0x100c49a4
push ecx
call fcn.100765db
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 0x100c49a4
xor edi, edi
inc edi
jmp 0x100c49ae
push dword [ebx]
call fcn.100765d6
pop ecx
mov dword [ebx], edi
lea ecx, [ebp - 0x24]
call fcn.100c1ed5
jmp 0x100c4a3f
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 [0x101d4b00]
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 0x100c4a37
mov esi, dword [ebp + 0x14]
shr ecx, 1
push ecx
mov dword [esi], ecx
call fcn.100765db
mov dword [ebx], eax
pop ecx
cmp dword [esi], edi
jbe 0x100c4a31
lea esi, [edi + edi]
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x10]
call fcn.1003b88b
push esi
lea ecx, [ebp - 0x10]
mov bl, al
call fcn.1003b88b
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 0x100c49ff
mov eax, dword [ebp - 0x10]
xor edi, edi
inc edi
lea ecx, [eax - 0x10]
call fcn.100023f0
mov eax, edi
call fcn.10194770
ret 0x10

Function at 0x100c4a49
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 0x100c4a9c
push esi
push dword [ebp + 8]
call fcn.100c4c33
mov edi, eax
test edi, edi
je 0x100c4a97
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 0x100c4a97
mov eax, dword [ebp - 8]
jmp 0x100c4aae
mov eax, dword [ebp + 0x10]
jmp 0x100c4aae
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 0x100c4ab4
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c9eb9
mov eax, dword fs:[0]
push eax
mov eax, 0x201c
call fcn.10194f20
mov eax, dword [0x1023c000]
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 0x100c4be5
push eax
push esi
call fcn.100c4c33
mov esi, eax
test esi, esi
jne 0x100c4b1c
push ebx
jmp 0x100c4c0e
lea ecx, [ebp - 0x2014]
call fcn.100035d0
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 0x100c4ba4
mov eax, dword [ebp - 0x2018]
lea ecx, [ebp - 0x2014]
shr eax, 1
push eax
call fcn.100038b0
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.10035e42
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x201c], 0
jne 0x100c4bd2
mov esi, dword [ebp - 0x2014]
add esi, 0xfffffff0
push esi
call fcn.100287c4
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.100023f0
jmp 0x100c4c15
push ebx
mov ecx, edi
call fcn.10027f20
mov ecx, dword [ebp - 0x2014]
lea ecx, [ecx - 0x10]
jmp 0x100c4bcb
push dword [ecx + 0x6c]
lea eax, [ebp - 0x2010]
test ebx, ebx
push 0x1000
push eax
mov eax, 0x101d5590
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.10027f20
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.10194762
leave
ret 0x10
Function at 0x100c4d4a
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 0x100c4d97
push esi
push dword [ebp + 8]
call fcn.100c4c33
mov edi, eax
test edi, edi
je 0x100c4e1b
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 0x100c4e1b
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.100765db
mov edx, dword [ebp + 0x14]
pop ecx
mov ecx, eax
mov dword [ebp - 8], ecx
test edx, edx
je 0x100c4ded
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 0x100c4dc6
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 [0x101d4b00]
mov ecx, edi
call esi
push dword [ebp - 8]
mov esi, eax
call fcn.100765d6
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x100c5e62
Capabilities:
Initialize winsock library

Disassembly:
push 0x198
mov eax, 0x101ca07d
call fcn.101947d5
mov eax, dword [ebp + 8]
mov ecx, 0x102447e4
push 0x100c5fc6
mov dword [ebp - 0x1a4], eax
call fcn.1010f82b
mov ebx, eax
test ebx, ebx
je 0x100c5f83
xor esi, esi
cmp dword [ebx + 0xc], esi
jne 0x100c5ed4
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 0x100c5ec2
xor eax, eax
jmp 0x100c5f7b
cmp byte [edi], 1
jne 0x100c5f00
cmp byte [edi + 1], 1
jne 0x100c5f00
mov dword [ebx + 0xc], 0x100c5f89
call fcn.1003f6f7
mov edi, eax
cmp dword [edi + 0x30], esi
jne 0x100c5f1c
push 0x1c
call fcn.10031509
pop ecx
mov dword [ebp - 0x1a4], eax
mov dword [ebp - 4], esi
test eax, eax
je 0x100c5f13
push 0xa
mov ecx, eax
call fcn.1010f1e0
jmp 0x100c5f15
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0x276c
call dword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x100c5ebb
mov eax, esi
or dword [ebp - 4], 0xffffffff
mov dword [edi + 0x30], eax
xor ebx, ebx
inc ebx
cmp dword [edi + 0x34], esi
jne 0x100c5f4d
push 0x1c
call fcn.10031509
pop ecx
mov dword [ebp - 0x1a4], eax
mov dword [ebp - 4], ebx
test eax, eax
je 0x100c5f44
push 0xa
mov ecx, eax
call fcn.1010f1e0
jmp 0x100c5f46
mov eax, esi
or dword [ebp - 4], 0xffffffff
mov dword [edi + 0x34], eax
cmp dword [edi + 0x38], esi
jne 0x100c5f79
push 0x1c
call fcn.10031509
pop ecx
mov dword [ebp - 0x1a4], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x100c5f76
push 0xa
mov ecx, eax
call fcn.10114407
mov esi, eax
mov dword [edi + 0x38], esi
mov eax, ebx
call fcn.10194784
ret 4
call fcn.1003decd
int3

Function at 0x100c61c4
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 0x100c620c
call fcn.1003f6c4
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 0x100c620c
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x100c6219
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor eax, eax
inc eax
test esi, esi
je 0x100c6255
mov edx, 0xffff
lea ecx, [esi + 0xc]
cmp word [esi + 2], dx
jne 0x100c6238
movzx edi, word [esi + 0x12]
movzx edx, word [esi + 0x14]
jmp 0x100c6241
movzx edx, word [ecx]
mov ecx, esi
movzx edi, word [esi + 0xa]
test dword [ecx], 0x1801
jne 0x100c6253
test di, di
jne 0x100c6253
test dx, dx
je 0x100c6255
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100c625a
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 0x100c6285
cmp dword [esi + 0x80], 0
jne 0x100c6285
movzx eax, di
mov dword [esi + 0x80], eax
call fcn.1003f6c4
push 5
push edi
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x100c62b5
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100c62b5
push ebx
push dword [ebp + 0xc]
mov ecx, esi
push eax
call fcn.100c6521
jmp 0x100c62b7
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x100c62be
Capabilities:
Extract resource via kernel32 functions

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

Disassembly:
push 0x24
mov eax, 0x101ca0d9
call fcn.1019480b
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.1003f6c4
cmp dword [edi + 0x84], 0
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x20], eax
je 0x100c6655
call fcn.1003f6c4
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 0x100c6669
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp - 0x18]
mov esi, eax
test esi, esi
je 0x100c6665
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 0x18], eax
test ebx, ebx
jne 0x100c6671
or eax, 0xffffffff
jmp 0x100c67c3
mov ecx, edi
call fcn.100c6c00
mov ebx, eax
mov dword [ebp - 0x2c], ebx
call fcn.1003225e
xor esi, esi
and dword [ebp - 0x1c], esi
and dword [ebp - 0x28], esi
mov dword [ebp - 0x14], esi
test ebx, ebx
je 0x100c66fd
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebx, eax
je 0x100c66fd
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x100c66fd
push esi
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x14], 1
call fcn.10004260
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x100c66fa
mov ecx, dword [esi]
mov esi, dword [ecx + 0x150]
mov ecx, esi
call dword [0x101d4b00]
mov ecx, dword [ebp - 0x1c]
call esi
test eax, eax
je 0x100c66fa
mov esi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.10038d1c
test eax, eax
je 0x100c66fa
push 0
mov ecx, esi
call fcn.10038621
mov dword [ebp - 0x28], 1
mov esi, dword [ebp - 0x14]
and dword [ebp - 4], 0
push edi
call fcn.10031ee7
push ebx
call fcn.10033708
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.100c6599
test eax, eax
jne 0x100c6746
cmp dword [edi + 0x9c], eax
jne 0x100c6746
call fcn.1003f6c4
push ebx
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
call fcn.10033708
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.100c6599
and dword [edi + 0x9c], 0
jmp 0x100c6771
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x28], 0
je 0x100c6785
mov ecx, dword [ebp - 0x1c]
push 1
call fcn.10038621
test esi, esi
je 0x100c6792
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
test ebx, ebx
je 0x100c67a8
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [edi + 0x20]
jne 0x100c67a8
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [edi]
mov esi, dword [eax + 0x60]
mov ecx, esi
call dword [0x101d4b00]
mov ecx, edi
call esi
mov ecx, edi
call fcn.100c6bb7
mov eax, dword [edi + 0x68]
call fcn.10194770
ret
Function at 0x100c82f2
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 0x100c8337
call fcn.1003f6c4
push 0xf0
push dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x100c8334
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100c837e
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 0x100c835a
mov ecx, dword [eax]
push dword [ebp + 0x10]
push edi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x101d4b00]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x100c837b
mov edx, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [edx + 0xa0]
mov ecx, esi
call dword [0x101d4b00]
mov ecx, edi
call esi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 0xc

Function at 0x100cbc7e
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.101a7e08
pop ecx
test eax, eax
jne 0x100cbcc0
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x101e6814
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.100470cb
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100cbc86
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 0x100cbe4f
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 0x100cbe8a
push 0
call dword [0x101d4b00]
mov ecx, esi
call edi
test eax, eax
je 0x100cbe86
xor eax, eax
inc eax
jmp 0x100cbe9d
xor eax, eax
jmp 0x100cbe9d
push dword [esi + 0x24]
call dword [0x101d4b00]
mov ecx, esi
call edi
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
leave
ret
Function at 0x100d64ec
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 0x100d6673
je 0x100d669a
sub eax, 0xa1
je 0x100d669a
sub eax, 1
je 0x100d669a
dec eax
sub eax, 1
je 0x100d669a
sub eax, 1
je 0x100d669a
dec eax
sub eax, 1
je 0x100d669a
sub eax, 1
je 0x100d669a
sub eax, 0x58
jne 0x100d66d8
cmp dword [edi + 0xc0], 0xffffffff
je 0x100d669a
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x100d669a
mov eax, dword [esi + 8]
sub eax, 0x21
je 0x100d65c8
sub eax, 1
jne 0x100d669a
mov eax, dword [edi + 0xc0]
lea ebx, [eax + 1]
jmp 0x100d65b7
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 [0x101d4b00]
mov ecx, edi
call esi
test eax, eax
jne 0x100d6614
mov eax, dword [edi + 0xc0]
inc ebx
mov ecx, dword [edi + 0xbc]
add eax, ecx
cmp ebx, eax
jl 0x100d658d
jmp 0x100d66f2
mov ecx, dword [edi + 0xc0]
lea ebx, [ecx - 1]
add ebx, dword [edi + 0xbc]
cmp ebx, ecx
jle 0x100d66f2
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 [0x101d4b00]
mov ecx, edi
call esi
test eax, eax
jne 0x100d6614
dec ebx
cmp ebx, dword [edi + 0xc0]
jg 0x100d65df
jmp 0x100d66f2
mov eax, dword [edi]
push dword [ebp - 4]
mov dword [edi + 0x24c], 1
mov esi, dword [eax + 0x214]
mov ecx, esi
call dword [0x101d4b00]
mov ecx, edi
call esi
mov eax, dword [edi]
mov esi, dword [eax + 0x210]
mov ecx, esi
call dword [0x101d4b00]
mov ecx, edi
call esi
mov ecx, eax
call fcn.100390f0
mov eax, dword [edi]
push dword [edi + 0xc0]
mov esi, dword [eax + 0x270]
mov ecx, esi
call dword [0x101d4b00]
mov ecx, edi
call esi
and dword [edi + 0x24c], 0
jmp 0x100d66f2
sub eax, 0x200
je 0x100d669a
sub eax, 1
je 0x100d669a
sub eax, 1
je 0x100d669a
dec eax
sub eax, 1
je 0x100d669a
sub eax, 1
je 0x100d669a
dec eax
sub eax, 1
je 0x100d669a
sub eax, 1
jne 0x100d66d8
mov eax, dword [edi + 0xfc]
test eax, eax
je 0x100d66b9
cmp dword [eax + 0x20], ebx
je 0x100d66b9
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 0x100d66d8
cmp dword [eax + 0x20], ebx
je 0x100d66d8
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esi + 4], 0x203
jne 0x100d66f7
lea eax, [edi + 0x2250]
test eax, eax
je 0x100d66ee
mov ebx, dword [eax + 0x20]
cmp dword [esi], ebx
jne 0x100d66f7
xor eax, eax
inc eax
jmp 0x100d66ff
push esi
mov ecx, edi
call fcn.10103e23
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1010ee1e
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.1003879e
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 0x1010ee5a
call fcn.1010f03b
mov dword [esi + 0xc], 1
jmp 0x1010ee5f
call fcn.1010f03b
cmp dword [esi], 0
je 0x1010eeaa
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 0x1010ee85
push edi
call fcn.10033756
lea ecx, [edi + 1]
push ecx
jmp 0x1010ee94
push 0xff
call fcn.100038b0
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.10035e42
pop edi
jmp 0x1010eece
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 0x1010eece
push dword [esi]
push dword [ebp - 4]
call fcn.10111ff6
pop esi
leave
ret 0xc

Function at 0x1010ef92
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.1010f03b
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x1010efda
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.10033756
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.10035e42
jmp 0x1010efe5
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.10111ff6
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x1010f9d2
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x101ccad9
call fcn.1019480b
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 0x1010fac9
cmp edi, dword [ebx + 0xc]
jge 0x1010fac9
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x1010fa29
cmp edi, dword [esi + 8]
jl 0x1010fab7
cmp dword [ebp + 0xc], 0
je 0x1010fab7
xor edi, edi
jmp 0x1010fa5b
xor edi, edi
push 0x10
mov dword [ebp - 4], edi
call fcn.1010f5e4
mov esi, eax
test esi, esi
je 0x1010fa43
mov dword [esi], vtable.CThreadData.0
jmp 0x1010fa45
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.10039415
cmp dword [esi + 0xc], 0
pop ecx
pop ecx
jne 0x1010fa77
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x1010fa83
push 2
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x1010faf0
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.10197940
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 0x1010fac9
cmp edi, dword [esi + 8]
jge 0x1010fac9
mov eax, dword [ebp + 0xc]
mov dword [ecx + edi*4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.10194770
ret 8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.1003dee7
int3