joyce8/EMBER2024-capa huggingface dataset:
Function at 0xe88250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xe9c808
push 0xe8c288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xe88329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xe88329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00e8b1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xe88329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xe88329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xe8832c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00e88351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xe88d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xe88d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xe88d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xe88d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xe88d94
push eax
push esi
call fcn.00e8b20b
add esp, 8
pop esi
ret 0x10

Function at 0xe88da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xe88e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xe88e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xea1320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00e8adff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xe88dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xe88e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xe88ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xe88eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xea1320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00e8adff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xe88eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xe88e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xe89000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xe89131
push esi
call fcn.00e8c145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00e7b080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xe89131
push 0
push ebp
call fcn.00e7b3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00e7b260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xe8908b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00e7b2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xe89121
push 0xea1918
push edi
call fcn.00e8a3f0
push eax
push ebx
push esi
call fcn.00e88f60
push 0xea18f8
push edi
call fcn.00e8a3f0
push eax
push ebx
push esi
call fcn.00e88f60
push 0xea18d8
push edi
call fcn.00e8a3f0
push eax
push ebx
push esi
call fcn.00e88f60
push 0xea18c0
push edi
call fcn.00e8a3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00e88f60
push 0xea18a0
push edi
call fcn.00e8a3f0
push eax
push ebx
push esi
call fcn.00e88f60
push 0xea1888
push edi
call fcn.00e8a3f0
push eax
push ebx
push esi
call fcn.00e88f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xe8a1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00e8a140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00e8a140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00e8a140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00e8a140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xe8abfa
Capabilities:
Query or enumerate registry value

Disassembly:
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 str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xe8ac50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xe9c87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xe8ac43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xe8ac52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401d80
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401dcb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401dc4
test esi, esi
je 0x401dc4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401da0
mov dword [esp], 0x407044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401fb0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], 0x4050c4
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4020d8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40203e
cmp eax, 4
jne 0x402060
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40204e
cmp edx, 4
je 0x40204e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], 0x4050dc
call fcn.00401fb0
Function at 0x401d5d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e120]
jne 0x401d67
repz ret
jmp fcn.004032a0

Function at 0x421d93
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040b1bc
and dword [ebp - 4], 0
cmp dword [0x5476fc], 0
mov ebx, eax
jne 0x421e44
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x421ef5
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x421ef5
push eax
call fcn.0040b14a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x5476fc], eax
call esi
push eax
call fcn.0040b14a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x547700], eax
call esi
push eax
call fcn.0040b14a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x547704], eax
call esi
push eax
call fcn.0040b14a
pop ecx
mov dword [0x54770c], eax
test eax, eax
je 0x421e44
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040b14a
pop ecx
mov dword [0x547708], eax
mov eax, dword [0x547708]
cmp eax, ebx
je 0x421e9c
cmp dword [0x54770c], ebx
je 0x421e9c
push eax
call fcn.0040b1c5
push dword [0x54770c]
mov esi, eax
call fcn.0040b1c5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x421e9c
test edi, edi
je 0x421e9c
call esi
test eax, eax
je 0x421e93
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x421e93
test byte [ebp - 0xc], 1
jne 0x421e9c
or dword [ebp + 0x10], 0x200000
jmp 0x421ed5
mov eax, dword [0x547700]
cmp eax, ebx
je 0x421ed5
push eax
call fcn.0040b1c5
pop ecx
test eax, eax
je 0x421ed5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x421ed5
mov eax, dword [0x547704]
cmp eax, ebx
je 0x421ed5
push eax
call fcn.0040b1c5
pop ecx
test eax, eax
je 0x421ed5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5476fc]
call fcn.0040b1c5
pop ecx
test eax, eax
je 0x421ef5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x421ef7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x428530
Capabilities:
Get geographical location
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x42e120]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, 0x5477e0
lea edx, [eax + 1]
jmp 0x428550
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x428550
sub eax, edx
cmp eax, 0xb05b7
jne 0x4285ed
cmp dword [0x4daebb4], 0x212
jne 0x42857c
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_OpenFileMappingA]
cmp dword [0x4daebb4], 0x3d3
jne 0x42859b
push 0
lea eax, [ebp - 0x404]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoA]
push 4
push str.duku
lea ecx, [ebp - 0x420]
mov dword [ebp - 0x408], 0xf
mov dword [ebp - 0x40c], 0
mov byte [ebp - 0x41c], 0
call fcn.00401330
push str.Wire_daduwi__s__d__f
call fcn.00402393
add esp, 4
cmp dword [ebp - 0x408], 0x10
jb 0x4285ed
mov ecx, dword [ebp - 0x41c]
push ecx
call fcn.00402409
add esp, 4
mov eax, dword [0x4daebb4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_GlobalDeleteAtom]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
xor esi, esi
cmp eax, 0x976
jne 0x42861f
push 0
call edi
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
mov eax, dword [0x4daebb4]
cmp eax, 0xcd2
jne 0x428635
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_SetSystemTimeAdjustment]
mov eax, dword [0x4daebb4]
cmp esi, 0x21e49f
jle 0x428649
cmp dword [ebp - 0x418], 0x7239c9ee
jne 0x4286aa
inc esi
cmp esi, 0x38f964ff
jl 0x428603
xor esi, esi
cmp eax, 0xd47
jne 0x428679
mov edx, dword [ebp - 0x424]
mov ecx, dword [ebp - 0x424]
push esi
push esi
push edx
lea eax, [ebp - 0x404]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileExW]
call fcn.004280c0
cmp dword [0x4daebb4], 0x5aa
jne 0x428695
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_MoveFileWithProgressA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00401d5d
mov esp, ebp
pop ebp
ret 0x10
xor esi, esi
mov dword [0x4dae810], esi
mov dword [0x4dae814], esi
cmp eax, 0x801
jne 0x428654
mov dword [0x4daeba8], esi
jmp 0x428679
Function at 0x10072f8
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x100730b
dec eax
mov dword [ecx + 4], eax
jne 0x100730b
jmp 0x100dd5a
ret
mov edi, edi
push ebx
push esi
push edi
push dword [0x1028cf0]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [eax + 8]
movsx eax, word [esi + 2]
sub eax, 4
je 0x100de1d
dec eax
je 0x100ddb1
sub eax, 5
je 0x100de0e
dec eax
je 0x100ddcf
dec eax
je 0x100ddc0
dec eax
je 0x100ddb1
dec eax
jne 0x100de2a
xor eax, eax
mov ax, word [esi + 8]
test ax, ax
je 0x100de2a
push eax
call dword [sym.imp.KERNEL32.dll_DeleteAtom]
jmp 0x100de2a
mov eax, dword [esi + 8]
test eax, eax
je 0x100de2a
push eax
call fcn.01008235
jmp 0x100de2a
mov eax, dword [esi + 8]
test eax, eax
je 0x100de2a
push eax
call fcn.0100d79e
jmp 0x100de2a
xor eax, eax
mov al, byte [esi + 0x14]
and eax, 3
sub eax, 0
je 0x100de06
dec eax
je 0x100ddea
dec eax
jne 0x100de2a
mov edi, dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
jmp 0x100ddf0
mov edi, dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [esi + 8]
test eax, eax
je 0x100ddfa
push eax
call edi
mov eax, dword [esi + 0xc]
test eax, eax
je 0x100de2a
push eax
call edi
jmp 0x100de2a
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x100ddf0
mov eax, dword [esi + 8]
test eax, eax
je 0x100de2a
push eax
call fcn.0100d7bf
jmp 0x100de2a
mov eax, dword [esi + 8]
test eax, eax
je 0x100de2a
push eax
call fcn.0100d79e
push esi
mov ecx, ebx
call fcn.01019e25
pop edi
pop esi
pop ebx
ret
Function at 0x100d054
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [0x1028cf0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 8]
call fcn.01019df3
test eax, eax
je 0x100d08a
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 0xc]
mov word [eax + 2], 6
mov dword [eax + 0xc], ecx
mov dword [eax + 4], 1
pop ebp
ret 8

Function at 0x100d093
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [0x1028cf0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 8]
call fcn.01019df3
test eax, eax
je 0x100d0c9
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 0xc]
mov word [eax + 2], 7
mov dword [eax + 0xc], ecx
mov dword [eax + 4], 1
pop ebp
ret 8

Function at 0x100d121
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [0x1028cf0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 8]
call fcn.01019df3
test eax, eax
je 0x100d155
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 0x100d15e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [0x1028cf0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 8]
call fcn.01019df3
test eax, eax
je 0x100d19a
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 0x100d1a3
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [0x1028cf0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 8]
call fcn.01019df3
test eax, eax
je 0x100d1e5
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 0x100d1ee
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [0x1028cf0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 8]
call fcn.01019df3
test eax, eax
je 0x100d228
mov ecx, dword [ebp + 8]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp + 0xc]
mov word [eax + 2], 9
mov byte [eax + 8], 5
mov dword [eax + 0x10], ecx
mov dword [eax + 4], 1
pop ebp
ret 8

Function at 0x100d231
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [0x1028cf0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 8]
call fcn.01019df3
test eax, eax
je 0x100d271
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 0x100d2b3
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 [0x1028cf0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov bl, byte [ebp + 0xc]
cmp bl, 2
mov esi, dword [eax + 8]
je 0x100d2da
cmp bl, 7
jne 0x100d2ef
push dword [ebp + 8]
call fcn.010155dd
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x100d2f2
mov edi, dword [ebp + 8]
test edi, edi
jne 0x100d2fd
xor eax, eax
jmp 0x100d3f0
mov ecx, esi
call fcn.01019df3
mov esi, eax
test esi, esi
je 0x100d3ee
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 0x100d3e3
jbe 0x100d3e7
cmp bl, 2
jbe 0x100d37c
cmp bl, 3
je 0x100d384
cmp bl, 6
je 0x100d3d2
cmp bl, 7
jne 0x100d3e7
mov al, byte [ebp + 0x10]
mov byte [esi + 0x15], al
jmp 0x100d3e7
mov ebx, dword [ebp + 0x10]
cmp ebx, 0xffffffff
jne 0x100d3d5
cmp dword [esi + 8], 0
je 0x100d3d5
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x100d3d5
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 0x100d3d5
mov ebx, dword [ebp + 0x10]
mov byte [esi + 0x15], bl
mov byte [esi + 0x16], bh
shr ebx, 0x10
mov byte [esi + 0x17], bl
jmp 0x100d3e7
mov byte [esi + 0x15], 0
mov dword [esi + 4], 1
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x100d3fc
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push dword [0x1028cf0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 8]
call fcn.01019df3
mov esi, eax
test esi, esi
je 0x100d4a7
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 0x100d47f
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 0x100df5c
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x1028cf0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x100df6d
ret
mov eax, dword [eax + 0xc]
ret