joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424bc4
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
xor esi, esi
push edi
mov ebx, esi
call fcn.00430574
mov edi, eax
test edi, edi
je 0x424cba
cmp dword [edi + 0x14], esi
je 0x424cba
cmp dword [edi], 0xf
jne 0x424cba
push dword [edi + 0x18]
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x424cba
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x424caf
push dword [edi + 0x18]
push dword [edi + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push esi
push 0xffffffffffffffff
push ebp
call dword [sym.imp.SHELL32.DLL_DragQueryFileW]
mov edi, eax
mov dword [esp + 0x14], edi
test edi, edi
jle 0x424caf
lea ebx, [edi - 1]
mov eax, esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], eax
push esi
push esi
push eax
push ebp
call dword [sym.imp.SHELL32.DLL_DragQueryFileW]
add ebx, eax
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, edi
jl 0x424c4c
push dword [esp + 0x20]
mov dword [esp + 0x1c], ebx
push ebx
call fcn.00438650
mov edi, eax
cmp dword [esp + 0x14], esi
jle 0x424ca9
lea eax, [ebx + 1]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], eax
push eax
push edi
push esi
push ebp
call dword [sym.imp.SHELL32.DLL_DragQueryFileW]
push 0xa
lea edi, [edi + eax*2]
pop eax
mov word [edi], ax
add edi, 2
mov eax, dword [esp + 0x10]
inc esi
cmp esi, ebx
jl 0x424c86
mov ebx, dword [esp + 0x18]
xor eax, eax
mov word [edi - 2], ax
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test ebx, ebx
jne 0x424cc6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
jmp fcn.00438760
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4

Function at 0x4254ad
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x77db08]
call fcn.00437a0f
mov ebx, eax
test ebx, ebx
je 0x425511
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x4254d6
push dword [esp + 0xc]
push ebx
call eax
jmp 0x425511
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.DLL_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.00438650
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.DLL_GetWindowTextW]
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
sub edi, eax
push edi
call fcn.00438730
pop edi
pop esi
pop ebx
ret 8
Function at 0x4283f6
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x77db18]
call fcn.0043789e
xor ebp, ebp
mov esi, eax
cmp dword [0x77b5c0], ebp
jne 0x4284d2
xor ebx, ebx
inc ebx
mov dword [0x77b5c0], ebx
call fcn.0042d358
mov edi, 0xa4
push edi
push ebp
push 0x77b5c8
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x77b5c8], 0x13
lea eax, [esp + 0x10]
mov dword [0x77b5cc], edi
mov dword [0x77b5d8], 0x428341
mov dword [0x77b5dc], 0x42868c
push eax
mov dword [0x77b630], 0x42831c
mov dword [0x77b634], 0x4285d7
mov dword [0x77b5d4], 0x4282f7
mov dword [0x77b658], 0x42835c
mov dword [0x77b66c], ebx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4284d2
cmp dword [esp + 0x20], ebx
je 0x4284ba
cmp dword [esp + 0x20], 2
jne 0x4284d2
cmp dword [esp + 0x14], 5
jae 0x4284c2
mov dword [0x77b66c], ebp
jmp 0x4284d2
jne 0x4284d2
mov eax, dword [esp + 0x18]
neg eax
sbb eax, eax
and dword [0x77b66c], eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
call fcn.00430d4b
mov eax, dword [esp + 0x140]
push ebp
push dword [0x77a6ac]
or eax, 0x50010000
push 0xffffffffffffffff
push dword [esi]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push eax
push ebp
push str.BUTTON
push ebp
call dword [sym.imp.USER32.DLL_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x4285a8
push dword [esp + 0x128]
push dword [0x77db08]
call fcn.00437a4e
mov edi, dword [esp + 0x13c]
mov esi, eax
mov dword [esi + 0x10], edi
test edi, edi
je 0x428577
push edi
call fcn.00433398
test eax, eax
je 0x428577
push ebp
push ebp
push edi
call fcn.00432fe2
mov dword [esi + 0x18], eax
jmp 0x42857a
mov dword [esi + 0x18], ebp
push 0x428037
push 0xfffffffffffffffc
push ebx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [sym.imp.USER32.DLL_SetWindowLongW]
push 0x77b5c8
push ebx
push esi
push dword [esp + 0x134]
mov dword [0x77b5c4], eax
call fcn.0042d1cf
mov ebx, eax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x114
ret 0x1c
Function at 0x42e2ea
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
lea eax, [ebp - 0x208]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov eax, dword [ebp + 8]
or eax, 0x4000
push eax
push 0x2b4
lea eax, [ebp - 0x4bc]
push eax
push 0
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHELL32.DLL_SHGetFileInfoW]
mov esp, ebp
pop ebp
ret 4

Function at 0x42e32f
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x42e3ab
cmp dword [0x77d1f8], 1
je 0x42e3ab
push ebx
mov ebx, 0x77d200
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x77d21c]
and dword [0x77d224], 0
mov dword [0x77d220], esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x77d218]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [0x77d21c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x42e3a3
push 0
push dword [0x77d1fc]
mov dword [0x77d1f8], 1
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop esi
ret 4
Function at 0x42e66c
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [0x77cd20], 0
jne 0x42e73d
push ebx
push ebp
push esi
xor ebp, ebp
inc ebp
push 0x77db38
mov dword [0x77cd20], ebp
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov eax, 0x640
push eax
push 8
push dword [0x77a6a8]
mov dword [0x77d1e4], eax
mov dword [0x77cd24], 0x1f4
call esi
mov dword [0x77d1f4], eax
mov eax, dword [0x77cd24]
add eax, eax
push eax
push 8
push dword [0x77a6a8]
call esi
xor ebx, ebx
mov dword [0x77d1f0], eax
push 0x77d200
mov dword [0x77d1e8], ebx
mov dword [0x77d1ec], ebp
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push ebp
push ebx
call esi
push ebx
push ebx
push ebp
push ebx
mov dword [0x77d218], eax
call esi
mov dword [0x77d21c], eax
cmp dword [0x77d218], ebx
je 0x42e734
test eax, eax
je 0x42e734
lea eax, [esp + 0xc]
mov dword [0x77d1f8], ebx
push eax
push ebx
push ebx
push 0x42e0ef
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x77d1fc], eax
jmp 0x42e73a
mov dword [0x77d1f8], ebp
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x42e73f
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x42e7e4
cmp dword [esp + 0xc], 0
je 0x42e7e4
cmp dword [0x77d1f8], 1
je 0x42e7e4
push edi
push 0x1f
push 0
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov edi, eax
cmp edi, 0xffffffff
je 0x42e7e3
push ebp
mov ebp, 0x77d200
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x77d21c]
mov dword [0x77d220], esi
mov dword [0x77d224], edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x77d218]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [0x77d21c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x42e7db
push 0
push dword [0x77d1fc]
mov dword [0x77d1f8], 1
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
pop edi
pop esi
ret 8
Function at 0x42f62a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov ebx, eax
test ebx, ebx
je 0x42f6a4
push 9
call esi
test al, al
jns 0x42f6a4
push 0x11
call esi
test al, al
js 0x42f6a4
push 0x10
call esi
test al, al
js 0x42f6a4
push 0x12
call esi
test al, al
js 0x42f6a4
push 5
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.USER32.DLL_GetClassNameW]
push 4
lea eax, [ebp - 0x10]
push 0x4e39fc
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x42f6a4
push eax
push eax
push 0x44e
push ebx
call dword [sym.imp.USER32.DLL_SendMessageW]
test eax, 0x800
jne 0x42f6a4
xor eax, eax
jmp 0x42f725
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x42f6cc
push 0x11
call esi
test al, al
js 0x42f6c4
push 0x10
call esi
test al, al
js 0x42f6c4
push 0x12
call esi
test al, al
jns 0x42f6cc
push 1
push edi
call fcn.0042f72d
mov esi, dword [sym.imp.USER32.DLL_GetPropW]
test ebx, ebx
je 0x42f6e2
push str.PB_Hotkey
push ebx
call esi
test eax, eax
jne 0x42f722
push str.PB_WindowID
push edi
call esi
mov esi, eax
test esi, esi
je 0x42f722
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x42f722
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 4], eax
jne 0x42f722
lea eax, [esi - 1]
push eax
push dword [0x77db0c]
call fcn.00437a0f
test eax, eax
je 0x42f722
mov eax, dword [eax + 8]
jmp 0x42f724
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x430e87
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor esi, esi
push esi
mov ebx, esi
call dword [sym.imp.USER32.DLL_OpenClipboard]
test eax, eax
je 0x430ec8
push 0xd
call dword [sym.imp.USER32.DLL_GetClipboardData]
mov edi, eax
test edi, edi
je 0x430ec0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x430ec0
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
mov ebx, eax
call dword [sym.imp.USER32.DLL_CloseClipboard]
jmp 0x430ecb
mov edi, dword [ebp + 8]
push dword [ebp + 8]
push ebx
call fcn.00438650
test esi, esi
je 0x430ef3
lea ecx, [ebx*2 + 2]
push ecx
push esi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x430ef8
xor ecx, ecx
mov word [eax], cx
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4312fc
Capabilities:
Set thread local storage value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
push edi
mov edi, ebx
test esi, esi
je 0x431359
push esi
call dword [esi + 0x58]
mov ecx, dword [esi + 0x80]
mov edi, eax
mov dword [esi + 0x94], ecx
mov ecx, dword [esi + 0x84]
mov dword [esi + 0x98], ecx
test edi, edi
jne 0x431359
mov eax, dword [esi + 0x70]
test eax, eax
je 0x431338
push ebx
push esi
call eax
push esi
push ebx
push dword [0x77a6a8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push dword [0x77db90]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x77db94], ebx
mov eax, edi
pop edi
pop esi
pop ebx
ret 4
Function at 0x431361
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [0x77db90]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [ebp + 0x18]
cmp eax, dword [esi + 0xac]
je 0x431389
push eax
push esi
mov dword [esi + 0xac], eax
call dword [esi + 0x40]
push dword [ebp + 0x14]
mov eax, dword [esi + 0x90]
push dword [ebp + 0x10]
add eax, dword [ebp + 0xc]
push eax
mov eax, dword [esi + 0x8c]
add eax, dword [ebp + 8]
push eax
push esi
call dword [esi + 4]
pop esi
pop ebp
ret 0x14

Function at 0x43183e
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
push esi
push edi
xor edi, edi
push edi
push pe_nt_image_headers32
push 3
push edi
push 1
push 0x80000000
push dword [esp + 0x2c]
mov ebp, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4318c2
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push edi
push dword [0x77a6a8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x4318ba
push ebp
lea eax, [esp + 0x1c]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4318ab
cmp dword [esp + 0x18], ebx
jne 0x4318ab
push ebx
push edi
push dword [esp + 0x1c]
call fcn.004314e8
mov ebp, eax
push edi
push 0
push dword [0x77a6a8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc

Function at 0x4334f6
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x77d26c], eax
test eax, eax
je 0x433524
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x77d268], eax
lea eax, [ebp - 0x114]
mov dword [0x77d270], 1
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x433586
cmp dword [ebp - 0x104], 1
jne 0x43355b
and dword [0x77d270], 0
jmp 0x43359e
cmp dword [ebp - 0x104], 2
jne 0x433586
cmp dword [ebp - 0x110], 5
jb 0x433552
jne 0x433586
mov eax, dword [ebp - 0x10c]
neg eax
sbb eax, eax
and eax, dword [0x77d270]
mov dword [0x77d270], eax
jmp 0x43358b
mov eax, dword [0x77d270]
test eax, eax
je 0x43359e
call fcn.00432dd1
neg eax
sbb eax, eax
and dword [0x77d270], eax
mov esp, ebp
pop ebp
ret

Function at 0x434600
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x434632
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43462d
cmp dword [esp + 0xc], esi
je 0x434649
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [edi + 8], esi
pop edi
mov eax, 1
pop esi
ret
Function at 0x4347b5
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0xc
mov ecx, dword [0x77d2cc]
push ebx
push ebp
push esi
push edi
xor esi, esi
xor edi, edi
mov dword [esp + 0x10], esi
test ecx, ecx
jle 0x434989
mov edx, dword [esp + 0x28]
mov eax, dword [esi*4 + 0x77dc20]
cmp dword [eax], edx
je 0x4347ef
inc esi
mov dword [esp + 0x10], esi
cmp esi, ecx
jl 0x4347d6
jmp 0x434989
cmp dword [esp + 0x38], 0x20
jne 0x43495d
mov eax, dword [eax + 8]
mov ebp, dword [esp + 0x44]
test eax, eax
je 0x434833
cmp ebp, 0x20
je 0x43480f
cmp ebp, 0xffffffff
jne 0x434833
push ebp
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call eax
jmp 0x434987
mov eax, dword [esp + 0x2c]
inc eax
imul ebx, eax, 3
and ebx, 0xfffffffc
mov eax, ebx
mov dword [esp + 0x14], ebx
imul eax, dword [esp + 0x30]
push eax
push 0
push dword [0x77a6a8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x434989
mov edi, dword [esp + 0x30]
test edi, edi
jle 0x434928
mov edx, dword [esp + 0x24]
mov ecx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ecx
mov ebp, edx
test eax, eax
jle 0x434908
mov ebx, ecx
mov esi, eax
mov ecx, 0xff
movzx eax, byte [ebp + 2]
sub eax, ecx
movzx ecx, byte [ebp + 3]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebx + 2], al
movzx eax, byte [ebp + 1]
sub eax, ecx
movzx ecx, byte [ebp + 3]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebx + 1], al
movzx eax, byte [ebp]
lea ebp, [ebp + 4]
sub eax, ecx
movzx ecx, byte [ebp - 1]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebx], al
lea ebx, [ebx + 3]
dec esi
jne 0x434899
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
add edx, dword [esp + 0x34]
add ecx, ebx
dec dword [esp + 0x24]
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], ecx
jne 0x434886
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x44]
mov eax, dword [esi*4 + 0x77dc20]
mov esi, dword [esp + 0x18]
push ebp
push dword [esp + 0x44]
push dword [esp + 0x44]
push ebx
push edi
push dword [esp + 0x40]
push esi
push dword [esp + 0x3c]
call dword [eax + 4]
push esi
push 0
push dword [0x77a6a8]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x434989
cmp dword [esp + 0x38], 0x18
jne 0x434989
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call dword [eax + 4]
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x28
Function at 0x43789e
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0x77d310]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x4378ff
push esi
push dword [0x77d30c]
push 8
push dword [0x77a6a8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x77d310]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x77d308]
jmp 0x4378ef
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4378ed
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x4378dd
push edi
push 0x43783c
call fcn.004d9bfe
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4

Function at 0x437909
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
mov ecx, esi
push edi
and ecx, 3
je 0x43791f
push 4
pop eax
sub eax, ecx
add esi, eax
mov eax, dword [0x77d30c]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x437956
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
push 8
push dword [0x77a6a8]
mov dword [0x77d310], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x77d310]
call ebx
mov eax, dword [0x77d30c]
mov edi, eax
add eax, esi
push eax
push dword [0x77d310]
mov dword [0x77d30c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x77a6a8]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0x77d310]
call ebx
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test esi, esi
jne 0x437996
test ebx, ebx
je 0x4379b7
push 0x14
push 0x77d308
call fcn.0043821c
pop ecx
pop ecx
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
test esi, esi
je 0x4379b7
lea ecx, [edi + ebp]
push ecx
call esi
pop ecx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x438330
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x767d08]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
sub edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x438376
mov ecx, dword [ebp - 4]
add ecx, 0xa
push ecx
push 0
mov edx, dword [0x77dca4]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x438397
mov edx, dword [ebp - 4]
add edx, 0xa
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [0x77dca4]
push edx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
shr edx, 1
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.00438960
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 8], edx
mov esp, ebp
pop ebp
ret 8
Function at 0x438420
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x767d08]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
add edx, 2
mov eax, dword [ebp - 4]
mov dword [eax + 8], edx
mov esp, ebp
pop ebp
ret

Function at 0x438520
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x767d08]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
mov edx, dword [ebp - 4]
add eax, dword [edx + 8]
mov esp, ebp
pop ebp
ret

Function at 0x438650
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x767d08]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0xffffffff
jne 0x438674
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
lea eax, [ecx + edx*2]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
sub edx, 4
cmp dword [ebp - 8], edx
jl 0x4386c4
mov eax, dword [ebp - 8]
add eax, 0x4000
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
add eax, 0xa
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x77dca4]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
jmp 0x43870c
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0x100000
jle 0x43870c
cmp dword [ebp - 8], 0x100000
jge 0x4386e0
mov dword [ebp - 8], 0x100000
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
add eax, 0xa
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x77dca4]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx*2]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 8

Function at 0x438730
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x767d08]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
shl ecx, 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
sub eax, ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov esp, ebp
pop ebp
ret 4
Function at 0x4388e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x767d08]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx]
jb 0x43891e
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
cmp dword [ebp + 8], ecx
ja 0x43891e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
sub ecx, dword [eax]
add ecx, 1
mov eax, ecx
jmp 0x438920
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x438a90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x767d08]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4