joyce8/EMBER2024-capa huggingface dataset:
Function at 0x107098f
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10ee1b5
call fcn.01003440
sub esp, 0x54
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
push 0x5c
xor ebx, ebx
call fcn.010143f7
cmp eax, 0xffffffff
mov esi, 0x104
jne 0x1070a6d
mov ecx, dword [ebp + 8]
push 0x2f
call fcn.010143f7
cmp eax, 0xffffffff
jne 0x1070a6d
mov edi, dword [ebp + 0xc]
push esi
mov ecx, edi
call fcn.0102778c
test eax, eax
je 0x1070b82
push esi
push eax
push dword [0x111c084]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xffffffffffffffff
mov ecx, edi
mov dword [ebp - 0x10], eax
call fcn.0102620d
cmp dword [ebp - 0x10], ebx
mov ecx, edi
je 0x1070b7d
push 0x5c
call fcn.010d55d2
mov edi, eax
cmp edi, 0xffffffff
jne 0x1070a1a
mov ecx, dword [ebp + 0xc]
jmp 0x1070b7d
lea ecx, [ebp - 0x4c]
call fcn.0102ee5c
and dword [ebp - 4], 0
inc edi
push edi
mov edi, dword [ebp + 0xc]
push edi
lea ecx, [ebp - 0x4c]
call fcn.01014424
mov ebx, eax
test ebx, ebx
jl 0x1070a4b
lea eax, [ebp - 0x4c]
push eax
mov ecx, edi
call fcn.010d580a
mov ebx, eax
test ebx, ebx
jge 0x1070a53
lea ecx, [ebp - 0x4c]
jmp 0x1070b6e
push dword [ebp + 8]
mov ecx, edi
call fcn.010d577a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
mov ebx, eax
call fcn.0101a964
jmp 0x1070a7d
push dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
call fcn.010d580a
mov edi, dword [ebp + 0xc]
mov ebx, eax
test ebx, ebx
jl 0x1070b7b
lea ecx, [ebp - 0x24]
call fcn.0102ee5c
push esi
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 1
call fcn.0102778c
test eax, eax
je 0x1070b6b
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.0102620d
test esi, esi
je 0x1070b6b
call fcn.0106ffba
test al, al
je 0x1070b6b
push dword [ebp - 0x1c]
mov eax, dword [edi + 4]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x1070b6b
lea ecx, [ebp - 0x38]
call fcn.0102ee5c
mov byte [ebp - 4], 2
call fcn.0106ff75
test al, al
mov eax, 0x1070bb8
jne 0x1070b08
mov eax, 0x1070b98
push eax
lea ecx, [ebp - 0x38]
call fcn.0103fc61
mov ebx, eax
test ebx, ebx
jl 0x1070b5f
lea ecx, [ebp - 0x60]
call fcn.0102ee5c
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x60]
push edi
mov byte [ebp - 4], 3
call fcn.010d590d
mov ebx, eax
test ebx, ebx
jl 0x1070b53
lea eax, [ebp - 0x38]
push eax
mov ecx, edi
call fcn.010d580a
mov ebx, eax
test ebx, ebx
jl 0x1070b53
lea eax, [ebp - 0x60]
push eax
mov ecx, edi
call fcn.010d577a
mov ebx, eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 2
call fcn.0101a964
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.0101a964
lea ecx, [ebp - 0x24]
or dword [ebp - 4], 0xffffffff
call fcn.0101a964
test ebx, ebx
jge 0x1070b82
mov ecx, edi
call fcn.0101a96f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x1078f98
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x10f0445
call fcn.01003440
sub esp, 0x22c
mov eax, dword [0x1116788]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push ebx
push eax
lea ecx, [ebp - 0x22c]
call sub.MFC42u.dll_CString::CString_3
xor ebx, ebx
push 0x5c
lea ecx, [ebp - 0x22c]
mov dword [ebp - 4], ebx
call sub.MFC42u.dll_CString::ReverseFind
cmp eax, 0xffffffff
je 0x107910d
cmp eax, 3
jge 0x1078fe1
inc eax
push eax
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x22c]
call sub.MFC42u.dll_CString::Left
mov eax, dword [eax]
push ebx
lea ecx, [ebp - 0x220]
push ecx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea ecx, [ebp - 0x228]
call sub.MFC42u.dll_CString::CString
lea eax, [ebp - 0x228]
push eax
mov ecx, 0x1116860
call fcn.010710ff
lea ecx, [ebp - 0x220]
push ecx
push eax
call fcn.010786a0
lea ecx, [ebp - 0x228]
mov byte [ebp - 0x221], al
call sub.MFC42u.dll_CString::CString
cmp byte [ebp - 0x221], bl
je 0x107910d
lea eax, [ebp - 0x230]
push eax
push 3
push ebx
push 0x1079178
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x107910d
push esi
push edi
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x228]
push eax
push ebx
mov esi, 0x1079150
push esi
push dword [ebp - 0x230]
mov dword [ebp - 0x228], 1
mov dword [ebp - 0x234], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
mov edi, 0x1079148
jne 0x10790ce
cmp dword [ebp - 0x228], 1
jne 0x10790ce
push edi
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10790ff
push 8
push edi
push 1
push ebx
push esi
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x238]
push eax
push 0x64
push 2
push 0x1079134
push ebx
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call sub.MFC42u.dll_CString::CString
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.010032ea
leave
ret 4
Function at 0x1081c13
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x10f2649
call fcn.01003440
sub esp, 0x24
push ebx
push esi
push edi
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x20]
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::constructor_long_int_]
push 0x1081d10
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::SetFunctionName_unsigned_short_int_const__]
mov edi, dword [ebp + 0xc]
push 0x80070057
push edi
lea eax, [ebp - 0x30]
push eax
call fcn.0102f887
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call dword [sym.imp.mmcbase.DLL_public:_class_mmcerror::SC____thiscall_mmcerror::SC::operator_class_mmcerror::SC_const__]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::destructor_void_]
lea ecx, [ebp - 0x20]
call dword [sym.imp.mmcbase.DLL_public:_bool___thiscall_mmcerror::SC::operator_bool_void_const]
test al, al
jne 0x1081cea
cmp dword [ebp + 0x10], ebx
je 0x1081c90
cmp edi, ebx
je 0x1081ce2
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
mov esi, eax
pop ecx
shl esi, 1
jmp 0x1081cd0
cmp edi, ebx
je 0x1081ce2
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.0102727b
mov eax, esp
push esi
push edi
push eax
call sub.MFC42u.dll_AfxW2AHelper
mov edi, eax
cmp edi, ebx
je 0x1081ce2
push edi
call dword [sym.imp.msvcrt.dll__mbslen]
push eax
push edi
call dword [sym.imp.msvcrt.dll__mbsnbcnt]
add esp, 0xc
mov esi, eax
push ebx
lea eax, [ebp - 0x10]
push eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1081ce4
xor esi, esi
cmp dword [ebp - 0x10], esi
sete bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::destructor_void_]
mov al, bl
lea esp, [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10be679
Capabilities:
Log keystrokes via application hook

Disassembly:
mov edi, edi
push esi
mov esi, ecx
cmp byte [esi + 0x55], 0
jne 0x10be6d6
cmp dword [0x1131998], 0
jne 0x10be6d6
push ebx
push edi
mov dword [0x1131998], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov ebx, eax
push ebx
push 0
push 0x10be4f9
push 7
call edi
push ebx
push 0
push 0x10bdba7
push 2
mov dword [esi + 0x14], eax
call edi
push ebx
push 0
push 0x10bd7a7
push 4
mov dword [esi + 0x18], eax
call edi
pop edi
mov dword [esi + 0x1c], eax
mov byte [esi + 0x55], 1
pop ebx
pop esi
ret
Function at 0x10cbd84
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov eax, 0x1102ae6
call fcn.01003440
push ecx
push ebx
push esi
push edi
push dword [ebp + 0x20]
mov esi, ecx
push dword [ebp + 0x18]
mov dword [ebp - 0x10], esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.010b3041
and dword [ebp - 4], 0
lea ecx, [esi + 0x7a8]
mov dword [esi], 0x10036a4
call fcn.0102ee5c
lea ebx, [esi + 0x7bc]
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.0102ee5c
mov al, byte [ebp + 0x1c]
and dword [esi + 0x8c], 0
lea edi, [esi + 0x398]
and word [edi], 0
mov byte [ebp - 4], 2
mov byte [esi + 0x7d4], al
call sub.MFC42u.dll_AfxGetModuleState
mov eax, dword [eax + 4]
push 0
push 0x106b044
push 0x106b030
lea ecx, [ebp + 0x18]
push ecx
mov ecx, eax
call sub.MFC42u.dll_CWinApp::GetProfileStringW
push dword [ebp + 0x18]
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.0103fc61
test eax, eax
jge 0x10cbe2a
mov ecx, ebx
call fcn.0101a96f
lea ebx, [esi + 0x7c0]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10cbe49
test al, 0x10
je 0x10cbe49
mov eax, dword [ebx]
mov dword [esi + 0x8c], eax
lea eax, [ebp + 0x20]
push eax
push 5
xor ebx, ebx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, ebx
jl 0x10cbeac
push edi
push dword [ebp + 0x20]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov dword [ebp + 0x1c], ebx
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 4
call fcn.01031781
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
lea ecx, [ebp + 0x1c]
call fcn.01030773
push dword [ebp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
cmp dword [esi + 0x8c], ebx
jne 0x10cbe9b
mov dword [esi + 0x8c], edi
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
mov byte [ebp - 4], 3
je 0x10cbeac
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea edx, [esi + 0x5a0]
xor eax, eax
mov edi, edx
mov ecx, 0x82
rep stosd dword es:[edi], eax
or dword [esi + 0x94], 0x80840
push 0xe136
mov dword [esi + 0x7c], edx
mov dword [esi + 0x80], 0x104
mov dword [esi + 0xa8], 0xc9
mov dword [esi + 0x7d0], ebx
call dword [sym.imp.mmcbase.DLL_struct_HINSTANCE______stdcall_GetStringModule_void_]
lea edi, [esi + 0x7a8]
push eax
mov ecx, edi
call fcn.0102f0eb
cmp eax, ebx
jge 0x10cbf18
push 0x10cbf44
mov ecx, edi
call fcn.0103fc61
cmp eax, ebx
jge 0x10cbf18
mov ecx, edi
call fcn.0101a96f
mov eax, dword [esi + 0x7ac]
lea ecx, [ebp + 0x18]
mov dword [esi + 0x90], eax
mov byte [ebp - 4], 2
call sub.MFC42u.dll_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x1c
Function at 0x10d442a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x10d448c
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10d4482
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x1069ff8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10d4475
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x10d4484
xor eax, eax
pop esi
leave
ret 4
Function at 0x10d9b44
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1116788]
push esi
mov esi, 0x104
push esi
lea ecx, [ebp - 0x20c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x10d9b90
cmp eax, esi
ja 0x10d9b90
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
jmp 0x10d9b92
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
call fcn.010032ea
leave
ret 4

Function at 0x10dc664
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1107513
call fcn.01003440
sub esp, 0x38
and dword [ebp - 0x10], 0
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x30]
call fcn.0102ee5c
and dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.0102ee5c
push dword [esi + 0xc]
lea eax, [ebp - 0x30]
push dword [0x10dc7c8]
mov byte [ebp - 4], 1
push 0x106957c
push eax
call fcn.010d57ef
mov edi, eax
add esp, 0x10
test edi, edi
jge 0x10dc6ce
mov eax, dword [0x11169c4]
cmp byte [eax + 0x19], 2
jb 0x10dc78b
mov esi, dword [esi + 0xc]
push edi
push esi
push 0x106b97c
push 0xb
jmp 0x10dc725
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x18], 4
push 0x80000002
mov dword [ebp - 0x1c], 0x10
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10dc732
jle 0x10dc709
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jge 0x10dc78b
mov eax, dword [0x11169c4]
cmp byte [eax + 0x19], 4
jb 0x10dc78b
push edi
push dword [ebp - 0x2c]
push 0x106b97c
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0106fe06
jmp 0x10dc78b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [0x10dc7c4]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10dc780
cmp eax, 2
je 0x10dc78b
mov eax, dword [0x11169c4]
cmp byte [eax + 0x19], 2
jb 0x10dc78b
push dword [ebp - 0x2c]
push dword [0x10dc7c4]
push 0x106b97c
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0103fa59
jmp 0x10dc78b
xor eax, eax
cmp dword [ebp - 0x14], eax
setne al
mov dword [esi + 0x20], eax
cmp dword [ebp - 0x10], 0
je 0x10dc79a
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.0101a964
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0101a964
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x10dc675
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1107513
call fcn.01003440
sub esp, 0x38
and dword [ebp - 0x10], 0
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x30]
call fcn.0102ee5c
and dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.0102ee5c
push dword [esi + 0xc]
lea eax, [ebp - 0x30]
push dword [0x10dc7c8]
mov byte [ebp - 4], 1
push 0x106957c
push eax
call fcn.010d57ef
mov edi, eax
add esp, 0x10
test edi, edi
jge 0x10dc6ce
mov eax, dword [0x11169c4]
cmp byte [eax + 0x19], 2
jb 0x10dc78b
mov esi, dword [esi + 0xc]
push edi
push esi
push 0x106b97c
push 0xb
jmp 0x10dc725
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x18], 4
push 0x80000002
mov dword [ebp - 0x1c], 0x10
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10dc732
jle 0x10dc709
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jge 0x10dc78b
mov eax, dword [0x11169c4]
cmp byte [eax + 0x19], 4
jb 0x10dc78b
push edi
push dword [ebp - 0x2c]
push 0x106b97c
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0106fe06
jmp 0x10dc78b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [0x10dc7c4]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10dc780
cmp eax, 2
je 0x10dc78b
mov eax, dword [0x11169c4]
cmp byte [eax + 0x19], 2
jb 0x10dc78b
push dword [ebp - 0x2c]
push dword [0x10dc7c4]
push 0x106b97c
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0103fa59
jmp 0x10dc78b
xor eax, eax
cmp dword [ebp - 0x14], eax
setne al
mov dword [esi + 0x20], eax
cmp dword [ebp - 0x10], 0
je 0x10dc79a
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.0101a964
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0101a964
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x10e2ba6
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [0x111a324]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 8]
call fcn.0101fac0
test eax, eax
je 0x10e2bda
mov ecx, dword [ebp + 8]
mov word [eax + 2], 9
mov byte [eax + 8], 2
mov dword [eax + 0xc], ecx
mov dword [eax + 4], 1
pop ebp
ret 4

Function at 0x10e2be3
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [0x111a324]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 8]
call fcn.0101fac0
test eax, eax
je 0x10e2c1f
mov cl, byte [ebp + 0x10]
mov byte [eax + 8], cl
mov ecx, dword [ebp + 8]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp + 0xc]
mov word [eax + 2], 9
mov dword [eax + 0x10], ecx
mov dword [eax + 4], 1
pop ebp
ret 0xc
Function at 0x10e2c28
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [0x111a324]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 8]
call fcn.0101fac0
test eax, eax
je 0x10e2c6a
mov cl, byte [ebp + 0x14]
mov byte [eax + 8], cl
mov ecx, dword [ebp + 8]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp + 0x10]
mov word [eax + 2], 9
mov dword [eax + 0x14], ecx
mov dword [eax + 4], 1
pop ebp
ret 0x10

Function at 0x10e2c73
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [0x111a324]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 8]
call fcn.0101fac0
test eax, eax
je 0x10e2cb3
mov ecx, dword [ebp + 8]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp + 0x10]
mov word [eax + 2], 9
mov byte [eax + 8], 6
mov dword [eax + 0x14], ecx
mov dword [eax + 4], 1
pop ebp
ret 0xc

Function at 0x10e2cbc
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push dword [0x111a324]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov bl, byte [ebp + 0xc]
cmp bl, 2
mov esi, dword [eax + 8]
je 0x10e2ce3
cmp bl, 7
jne 0x10e2cf8
push dword [ebp + 8]
call fcn.010e3e63
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x10e2cfb
mov edi, dword [ebp + 8]
test edi, edi
jne 0x10e2d06
xor eax, eax
jmp 0x10e2df9
mov ecx, esi
call fcn.0101fac0
mov esi, eax
test esi, esi
je 0x10e2df7
mov al, byte [ebp + 0x18]
mov cl, byte [ebp + 0x14]
and dword [esi + 0xc], 0
or al, 0xfe
shl al, 1
and cl, 1
or al, cl
mov cl, byte [esi + 0x14]
shl al, 5
and cl, 0x1c
or al, cl
mov byte [esi + 0x14], al
lea eax, [ebp - 0x18]
push eax
push 0x18
push edi
mov word [esi + 2], 0xb
mov dword [esi + 8], edi
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ax, word [ebp - 0x14]
mov word [esi + 0x10], ax
mov ax, word [ebp - 0x10]
mov word [esi + 0x12], ax
mov al, bl
shl al, 2
xor al, byte [esi + 0x14]
and al, 0x1c
xor byte [esi + 0x14], al
test bl, bl
je 0x10e2dec
jbe 0x10e2df0
cmp bl, 2
jbe 0x10e2d85
cmp bl, 3
je 0x10e2d8d
cmp bl, 6
je 0x10e2ddb
cmp bl, 7
jne 0x10e2df0
mov al, byte [ebp + 0x10]
mov byte [esi + 0x15], al
jmp 0x10e2df0
mov ebx, dword [ebp + 0x10]
cmp ebx, 0xffffffff
jne 0x10e2dde
cmp dword [esi + 8], 0
je 0x10e2dde
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x10e2dde
push dword [esi + 8]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
call edi
push 0
push 0
push dword [ebp + 0xc]
mov dword [ebp + 0x18], eax
call dword [sym.imp.GDI32.dll_GetPixel]
push dword [ebp + 0x18]
mov ebx, eax
push dword [ebp + 0xc]
call edi
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x10e2dde
mov ebx, dword [ebp + 0x10]
mov byte [esi + 0x15], bl
mov byte [esi + 0x16], bh
shr ebx, 0x10
mov byte [esi + 0x17], bl
jmp 0x10e2df0
mov byte [esi + 0x15], 0
mov dword [esi + 4], 1
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x10e2e05
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push dword [0x111a324]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 8]
call fcn.0101fac0
mov esi, eax
test esi, esi
je 0x10e2eb0
mov cl, byte [esi + 0x14]
mov eax, dword [ebp + 8]
and dword [esi + 0xc], 0
and cl, 0xfd
or cl, 1
test eax, eax
mov word [esi + 2], 0xb
mov dword [esi + 8], eax
mov byte [esi + 0x14], cl
je 0x10e2e88
push edi
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetIconInfo]
lea eax, [ebp - 0x2c]
push eax
push 0x18
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ax, word [ebp - 0x28]
push dword [ebp - 8]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
mov word [esi + 0x10], ax
mov ax, word [ebp - 0x24]
mov word [esi + 0x12], ax
call edi
push dword [ebp - 4]
call edi
pop edi
mov al, byte [ebp + 0x10]
mov cl, byte [ebp + 0xc]
or al, 0xfe
and cl, 1
shl al, 1
or al, cl
mov cl, byte [esi + 0x14]
shl al, 5
and cl, 3
or al, cl
mov byte [esi + 0x15], 0
mov byte [esi + 0x14], al
mov dword [esi + 4], 1
mov eax, esi
pop esi
leave
ret 0xc

Function at 0x10e3987
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x1116788]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push edi
push esi
push 0x10e39f0
mov dword [ebp - 4], eax
lea eax, [ebp - 0xd0]
push 0x65
push eax
mov ebx, ecx
call dword [sym.imp.msvcrt.dll__snwprintf]
and word [ebp - 8], 0
add esp, 0x18
lea eax, [ebp - 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x10e39e1
push dword [ebp + 0x10]
push edi
push esi
call eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010032ea
leave
ret 0xc