joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6539ba00
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x100
and eax, 0xff
push ebx
mov ebx, dword [sym.imp.USER32.dll_CharLowerA]
push ebp
push esi
push edi
push eax
call ebx
mov edx, dword [esp + 0x114]
lea ecx, [esp + 0x10]
push 0x100
push ecx
push edx
mov byte [esp + 0x124], al
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov al, byte [esp + 0x10]
lea esi, [esp + 0x10]
test al, al
je 0x6539baa1
mov edi, dword [sym.imp.USER32.dll_CharNextA]
mov ebp, dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
cmp byte [esi], 0x26
jne 0x6539ba68
mov al, byte [esi + 1]
inc esi
push eax
call ebp
test eax, eax
jne 0x6539ba68
cmp byte [esi], 0x26
jne 0x6539ba7f
push esi
call edi
mov esi, eax
cmp byte [esi], 0
jne 0x6539ba53
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
xor ecx, ecx
mov cl, byte [esi]
push ecx
call ebx
mov cl, byte [esp + 0x118]
xor edx, edx
cmp al, cl
sete dl
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x100
ret

Function at 0x6539baae
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ebx, dword [esp + 0x14]
test ax, ax
jl 0x6539bb4b
mov eax, dword [ebx + 4]
mov ebp, dword [sym.imp.USER32.dll_GetDlgItem]
cmp eax, 0x106
je 0x6539baef
cmp eax, 0x102
jne 0x6539bb0b
mov eax, dword [esi + 0x44]
push 0x3021
push eax
call ebp
cmp dword [ebx], eax
jne 0x6539bb0b
mov cl, byte [ebx + 8]
mov edx, dword [esi + 0x44]
push ecx
push 0x3021
push edx
call ebp
push eax
call fcn.6539ba00
add esp, 8
test eax, eax
jne 0x6539bb4b
call dword [sym.imp.USER32.dll_GetFocus]
mov edi, eax
test edi, edi
je 0x6539bb89
cmp dword [ebx + 4], 0x100
jne 0x6539bb89
cmp dword [ebx + 8], 9
jne 0x6539bb3f
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x6539bb72
mov eax, dword [esi + 0x44]
push 1
push eax
call ebp
cmp edi, eax
je 0x6539bb89
push edi
call dword [sym.imp.USER32.dll_GetParent]
cmp eax, dword [esi + 0x44]
jne 0x6539bb89
mov eax, dword [esp + 0x18]
push ebx
test eax, eax
push 0
push 0x475
je 0x6539bb95
mov edx, dword [esi + 0x44]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x6539bb89
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov ecx, dword [esi + 0x44]
push 0
push 0
push 0x474
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp edi, eax
jne 0x6539bb3f
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 8
mov eax, dword [esi + 0x44]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x6539bb89
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x6539c01a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, 0x80000000
je 0x6539c18e
cmp al, 4
jae 0x6539c18e
mov edx, 1
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x10]
push str.COMCTL32
rep stosd dword es:[edi], eax
neg edx
sbb edx, edx
mov edi, str.MS_Sans_Serif
and edx, 0x12c
or ecx, 0xffffffff
add edx, 0x190
mov dword [esp + 0x14], 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x24], edx
lea edx, [esp + 0x30]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
mov byte [esp + 0x2b], 1
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
test ebp, ebp
je 0x6539c17b
push 5
push 0x3ee
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x6539c174
mov ecx, dword [eax]
xor edx, edx
and ecx, 0xffff0000
lea esi, [eax + 0x1a]
cmp ecx, 0xffff0000
sete dl
mov edi, edx
test edi, edi
jne 0x6539c0ea
lea esi, [eax + 0x12]
mov ax, word [esi]
cmp ax, 0xffff
jne 0x6539c195
add esi, 4
mov ax, word [esi]
cmp ax, 0xffff
jne 0x6539c1b2
add esi, 4
mov dx, word [esi]
add esi, 2
test dx, dx
je 0x6539c120
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x6539c115
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
push 0x48
push 0x5a
push ebx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
xor ecx, ecx
push eax
mov cx, word [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
push ebx
push 0
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
neg edi
sbb edi, edi
lea edx, [esp + 0x2c]
and edi, 2
push edx
inc edi
lea esi, [esi + edi*2]
push esi
call fcn.6534142b
add esp, 4
push eax
push esi
call fcn.6539b434
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
xor edx, edx
jmp 0x6539c03f
add esi, 2
test ax, ax
je 0x6539c0fa
mov ax, word [esi]
add esi, 2
test ax, ax
je 0x6539c0fa
jmp 0x6539c1a1
add esi, 2
test ax, ax
je 0x6539c10a
mov cx, word [esi]
add esi, 2
test cx, cx
je 0x6539c10a
jmp 0x6539c1be
Function at 0x653a0d1d
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c
mov edx, dword [esp + 0x24]
push ebx
push ebp
xor ebp, ebp
mov ax, word [edx + 0x28]
mov cx, word [edx + 0x24]
push esi
mov word [esp + 0x1c], ax
mov word [esp + 0x1a], cx
mov dword [esp + 0xc], 0x5711
mov cx, word [esp + 0xc]
push edi
xor ebx, ebx
mov word [esp + 0x18], bp
mov word [esp + 0x1c], bp
mov word [esp + 0x1a], bp
mov word [esp + 0x22], 0x5a0
mov dword [esp + 0x24], ebp
mov dword [esp + 0x14], 0x9ac6cdd7
lea eax, [esp + 0x18]
xor cx, word [eax]
add eax, 2
lea esi, [esp + 0x28]
cmp eax, esi
jb 0x653a0d71
mov word [esp + 0x28], cx
mov ecx, dword [edx + 0x20]
lea eax, [esp + 0x10]
push eax
push ecx
call fcn.653a0c65
mov esi, eax
add esp, 8
cmp esi, ebp
je 0x653a0e10
mov edi, dword [esp + 0x30]
lea edx, [esp + 0x14]
push 4
push edx
push edi
call fcn.6539d3d6
mov ebx, eax
add esp, 0xc
cmp ebx, ebp
jl 0x653a0dfb
lea eax, [esp + 0x18]
push 0x12
push eax
push edi
call fcn.6539d3d6
mov ebx, eax
add esp, 0xc
cmp ebx, ebp
jl 0x653a0dfb
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esp + 0x10]
push ecx
push eax
push edi
call fcn.6539d3d6
add esp, 0xc
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x38]
cmp eax, ebp
je 0x653a0dfb
mov edx, dword [esp + 0x10]
add edx, 0x16
mov dword [eax], edx
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.6539e21c
mov ecx, dword [esp + 0x3c]
add esp, 8
mov dword [ecx + 0x20], eax
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x653a35be
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov bl, byte [esp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test bl, 2
je 0x653a3634
mov eax, dword [0x653c7c24]
test eax, eax
jne 0x653a3634
push str.urlmon.dll
call edi
test eax, eax
mov dword [0x653c7c24], eax
je 0x653a3634
push str.CreateURLMoniker
push eax
call esi
mov dword [0x653c9084], eax
mov eax, dword [0x653c7c24]
push str.CreateAsyncBindCtx
push eax
call esi
mov ecx, dword [0x653c7c24]
push str.RegisterBindStatusCallback
push ecx
mov dword [0x653c9088], eax
call esi
mov edx, dword [0x653c7c24]
push str.RevokeBindStatusCallback
push edx
mov dword [0x653c9090], eax
call esi
mov dword [0x653c908c], eax
test bl, 1
je 0x653a36b3
mov eax, dword [0x653c7c20]
test eax, eax
jne 0x653a36b3
push str.asycfilt.dll
call edi
test eax, eax
mov dword [0x653c7c20], eax
jne 0x653a365d
mov eax, 0x80004005
pop edi
pop esi
pop ebx
ret 4
push str.FilterCreateInstance
push eax
call esi
test eax, eax
mov dword [0x653c9094], eax
jne 0x653a3679
mov eax, 0x80004005
pop edi
pop esi
pop ebx
ret 4
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
push str.MS_AsyncImage_DCWait
call esi
push str.MS_AsyncImage_Display
mov word [0x653c9098], ax
call esi
push str.MS_AsyncImage_Abnormal
mov word [0x653c909c], ax
call esi
push str.MS_AsyncImage_Finished
mov word [0x653c90a0], ax
call esi
mov word [0x653c90a4], ax
pop edi
pop esi
xor eax, eax
pop ebx
ret 4

Function at 0x653a600b
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 0xc]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0xc]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 1
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
test eax, eax
je 0x653a6040
and eax, 0xffff
or eax, 0x80070000
pop edi
ret
xor eax, eax
pop edi
ret

Function at 0x653a62e2
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [section..data]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call esi
test eax, eax
jne 0x653a6322
call fcn.65353daf
test eax, eax
jge 0x653a6319
mov ecx, eax
test ecx, ecx
jge 0x653a6326
mov eax, dword [esp + 8]
test ecx, ecx
jne 0x653a6335
mov edx, dword [esp + 8]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
pop esi
ret
mov ecx, dword [section..data]
push ecx
call esi
xor ecx, ecx
jmp 0x653a6300
mov edx, dword [section..data]
push edx
call esi
mov eax, dword [eax]
xor ecx, ecx
jmp 0x653a6308
xor eax, eax
pop esi
ret
Function at 0x653a6339
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [section..data]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call esi
test eax, eax
jne 0x653a637e
call fcn.65353daf
test eax, eax
jge 0x653a6375
mov ecx, eax
test ecx, ecx
jge 0x653a6382
mov eax, dword [esp + 0xc]
test ecx, ecx
jne 0x653a6391
mov edx, dword [esp + 0xc]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0xc]
push edx
push eax
call dword [ecx + 0x10]
pop esi
ret
mov ecx, dword [section..data]
push ecx
call esi
xor ecx, ecx
jmp 0x653a6357
mov edx, dword [section..data]
push edx
call esi
mov eax, dword [eax]
xor ecx, ecx
jmp 0x653a635f
xor eax, eax
pop esi
ret

Function at 0x653a6395
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x653a63cf
mov eax, dword [section..data]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call esi
test eax, eax
jne 0x653a63db
call fcn.65353daf
test eax, eax
jge 0x653a63d2
mov ecx, eax
test ecx, ecx
jge 0x653a63df
mov eax, dword [esp + 0xc]
test ecx, ecx
jne 0x653a63cf
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x14]
pop edi
pop esi
ret
mov ecx, dword [section..data]
push ecx
call esi
xor ecx, ecx
jmp 0x653a63bc
mov edx, dword [section..data]
push edx
call esi
mov eax, dword [eax]
xor ecx, ecx
jmp 0x653a63c4
Function at 0x653aec18
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 8]
mov dword [ebp - 4], edi
mov ebx, dword [edi + 0xc]
mov ecx, dword [edi + 0x34]
add ebx, dword [ebp + 8]
push eax
call fcn.653602ac
test eax, eax
mov dword [ebp + 8], eax
jl 0x653aed46
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x108]
push 0xff
push eax
mov ax, word [ebx + 2]
and eax, 0xfffe
push eax
call fcn.653a8b7c
test eax, eax
mov dword [ebp + 8], eax
jl 0x653aed46
cmp byte [ebp - 0x108], 0x5c
je 0x653aec8c
lea eax, [ebp - 0x108]
push 0x3a
push eax
call fcn.653a692d
pop ecx
test eax, eax
pop ecx
je 0x653aecf5
lea eax, [ebp - 0x210]
push 0x4000
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.6535784e
cmp eax, 0xffffffff
jne 0x653aecf5
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.6535d0bd
pop ecx
test eax, eax
pop ecx
jne 0x653aeccd
lea eax, [ebp - 0x108]
push 0x3a
push eax
call fcn.6535d0bd
pop ecx
pop ecx
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x108]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8001
call esi
cmp dword [ebx + 0xc], 0x20
mov dword [ebp - 4], eax
jae 0x653aed6c
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, 0x20
mov dword [ebx + 0xc], eax
jae 0x653aed6c
push dword [ebp - 4]
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x653aed63
cmp eax, 0x7e
je 0x653aed63
cmp eax, 0x7f
je 0x653aed63
cmp eax, 3
jne 0x653aed50
mov dword [ebp + 8], 0x80030003
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8
neg eax
sbb eax, eax
and eax, 0xfffb9c3c
add eax, 0x8007000e
mov dword [ebp + 8], eax
jmp 0x653aed46
mov dword [ebp + 8], 0x80030002
jmp 0x653aed46
push dword [ebp - 4]
call esi
xor esi, esi
cmp word [ebx], si
je 0x653aeda9
movzx eax, word [ebx + 4]
push eax
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp + 0xc]
cmp eax, esi
mov dword [ecx], eax
jne 0x653aed96
mov dword [ebp + 8], 0x8002802f
cmp dword [ebp + 8], esi
je 0x653aed46
push dword [ebx + 0xc]
call fcn.65363d54
pop ecx
mov dword [ebx + 0xc], esi
jmp 0x653aed46
lea eax, [ebp - 0x108]
push 0xff
push eax
mov ecx, edi
movzx eax, word [ebx + 4]
push eax
call fcn.65363d0e
lea eax, [ebp - 0x108]
jmp 0x653aed7c
Function at 0x653afbe7
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
cmp edx, eax
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov dword [ebx], eax
mov dword [esi], eax
je 0x653afd0e
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [ebp - 8]
not ecx
movzx edi, word [eax + 4]
cmp ecx, edi
jbe 0x653afc24
mov word [eax + 4], cx
mov dword [ebp + 0xc], 0x20
and dword [ebp + 0x10], 0
cmp byte [edx], 0x20
jne 0x653afc3d
cmp dword [ebx], 0
je 0x653afc3d
inc edx
mov dword [ebp + 8], edx
mov al, byte [edx]
mov edi, edx
test al, al
jne 0x653afc4c
mov dword [ebp + 0x10], 1
cmp al, 0x20
jne 0x653afc5c
inc dword [ebp + 0x10]
inc edx
cmp byte [edx], 0x20
je 0x653afc50
mov dword [ebp + 8], edx
mov al, byte [edx]
test al, al
je 0x653afc76
cmp al, 0x20
je 0x653afc7b
test al, al
je 0x653afc7b
inc dword [ebp + 0x10]
mov al, byte [edx + 1]
inc edx
mov dword [ebp + 8], edx
jmp 0x653afc62
cmp byte [edi], 0
jne 0x653afc2b
mov eax, dword [ebp - 4]
cmp eax, dword [ebx]
jne 0x653afca9
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [ebp + 0xc]
mov eax, dword [eax]
push dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
test eax, eax
je 0x653afcd3
add dword [ebp - 4], 8
add dword [ebp + 0xc], 0x20
mov dword [esi], eax
push dword [ebp + 0x10]
push edi
call sym.OLEAUT32.dll_SysAllocStringByteLen
mov ecx, dword [ebx]
mov edx, dword [esi]
mov dword [edx + ecx*4], eax
mov eax, dword [ebx]
mov ecx, dword [esi]
cmp dword [ecx + eax*4], 0
je 0x653afcd3
inc eax
cmp byte [edi], 0
mov dword [ebx], eax
je 0x653afd0e
mov edx, dword [ebp + 8]
jmp 0x653afc2b
xor edi, edi
cmp esi, edi
je 0x653afd02
cmp dword [ebx], edi
jbe 0x653afcec
mov eax, dword [esi]
push dword [eax + edi*4]
call sym.OLEAUT32.dll_SysFreeString
inc edi
cmp edi, dword [ebx]
jb 0x653afcdd
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax]
push dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, 0x8007000e
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
jmp 0x653afd07
Function at 0x653afd96
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push dword [ebp + 8]
mov ebx, ecx
push 0
push 1
call sym.OLEAUT32.dll_LHashValOfNameSysA
push dword [section..data]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax]
push 0x14
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov esi, eax
test esi, esi
jne 0x653afdd4
mov eax, 0x8007000e
pop esi
pop ebx
leave
ret 8
push edi
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [esi], 1
cmp dword [ebp + 8], eax
je 0x653afdff
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push dword [ebp + 8]
call sym.OLEAUT32.dll_SysAllocStringByteLen
mov dword [esi + 4], eax
mov ecx, 0x800
movzx eax, word [ebp - 4]
cdq
idiv ecx
mov eax, dword [ebx + 0x1c]
inc dword [ebx + 0x14]
pop edi
mov ecx, dword [eax + edx*4]
mov dword [eax + edx*4], esi
mov dword [esi + 0x10], ecx
lea eax, [eax + edx*4]
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
xor eax, eax
jmp 0x653afdce
Function at 0x653afe2a
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x10]
jne 0x653afe7f
push dword [section..data]
add eax, 0x200
mov dword [esi + 0xc], eax
call ebx
mov edx, dword [esi + 0xc]
mov eax, dword [eax]
shl edx, 2
mov ecx, dword [eax]
push edx
push dword [esi + 0x18]
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x653afe7c
add dword [esi + 0xc], 0xfffffe00
mov eax, 0x8007000e
pop edi
pop esi
pop ebx
leave
ret 8
mov dword [esi + 0x18], eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.653afbe7
test eax, eax
jl 0x653afe75
push dword [section..data]
call ebx
mov eax, dword [eax]
push 8
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov edi, eax
test edi, edi
mov dword [ebp + 8], edi
je 0x653afe70
push dword [section..data]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call ebx
mov edx, dword [ebp - 4]
mov eax, dword [eax]
shl edx, 2
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
mov edx, dword [ebp + 8]
mov edi, eax
test edi, edi
mov dword [edx + 4], edi
jne 0x653afef9
mov dword [ebp - 0xc], 0x8007000e
push dword [section..data]
call ebx
mov eax, dword [eax]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0xc]
jmp 0x653afe75
mov ecx, dword [ebp - 4]
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 4]
xor edi, edi
mov dword [edx], eax
cmp dword [ebp - 4], edi
jbe 0x653aff36
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
mov eax, dword [ebp - 8]
push dword [eax + edi*4]
call fcn.653afd12
test eax, eax
mov dword [ebp - 0xc], eax
jl 0x653afede
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [eax + edi*4], ecx
inc edi
cmp edi, dword [ebp - 4]
jb 0x653aff0c
xor edi, edi
cmp dword [ebp - 4], edi
jbe 0x653aff4e
mov eax, dword [ebp - 8]
push dword [eax + edi*4]
call sym.OLEAUT32.dll_SysFreeString
inc edi
cmp edi, dword [ebp - 4]
jb 0x653aff3d
push dword [section..data]
call ebx
mov eax, dword [eax]
push dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x18]
mov edx, dword [ebp + 8]
mov dword [ecx + eax*4], edx
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi + 0x10]
mov dword [ecx], eax
inc eax
mov dword [esi + 0x10], eax
xor eax, eax
jmp 0x653afe75
Function at 0x653aff80
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
push dword [section..data]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax]
push 0x10
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov ecx, dword [esp + 0x14]
mov edi, eax
test edi, edi
mov dword [ecx], edi
jne 0x653affb0
mov eax, 0x8007000e
pop edi
pop esi
ret 0xc
xor eax, eax
mov edx, dword [esp + 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ecx]
mov ecx, dword [esp + 0xc]
add dword [esi], 3
mov edi, dword [ecx + 4]
and dword [eax], 0
add edi, dword [edx + 4]
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
xor eax, eax
jmp 0x653affab
Function at 0x653b0264
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x10], 0
jne 0x653b0280
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push dword [section..data]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call ebx
mov edx, dword [esi + 0x14]
mov eax, dword [eax]
shl edx, 2
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
mov edi, eax
test edi, edi
mov dword [ebp - 4], edi
jne 0x653b02ad
mov eax, 0x8007000e
jmp 0x653b027b
mov ecx, dword [esi + 0x14]
xor eax, eax
shl ecx, 2
mov edx, ecx
mov dword [ebp - 0xc], 0x800
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esi + 0x1c]
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [edx]
test eax, eax
je 0x653b02eb
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 8]
lea ecx, [ecx + edi*4]
inc dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [eax + 0x10]
add ecx, 4
test eax, eax
jne 0x653b02dc
add edx, 4
dec dword [ebp - 0xc]
jne 0x653b02cd
push dword [section..data]
call ebx
mov edx, dword [esi + 0x14]
mov eax, dword [eax]
shl edx, 2
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
mov dword [ebp - 8], eax
jne 0x653b0330
mov edi, 0x8007000e
push dword [section..data]
call ebx
mov eax, dword [eax]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, edi
jmp 0x653b027b
mov edx, dword [esi + 0x14]
test edx, edx
jbe 0x653b0349
mov ecx, dword [ebp - 4]
sub ecx, eax
mov edi, dword [ecx + eax]
mov edi, dword [edi]
mov dword [eax], edi
add eax, 4
dec edx
jne 0x653b033c
push dword [section..data]
call ebx
mov edx, dword [esi + 0x14]
mov eax, dword [eax]
shl edx, 2
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
mov edi, eax
test edi, edi
mov dword [ebp - 0xc], edi
jne 0x653b0383
mov edi, 0x8007000e
push dword [section..data]
call ebx
mov eax, dword [eax]
push dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
jmp 0x653b0316
mov eax, dword [esi + 0x14]
xor ecx, ecx
test eax, eax
jbe 0x653b0398
mov edx, edi
mov dword [edx], ecx
inc ecx
add edx, 4
cmp ecx, eax
jb 0x653b038e
push eax
push edi
push dword [ebp - 8]
call fcn.653ab6fa
add esp, 0xc
mov ecx, esi
push edi
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.653affd9
mov edi, eax
test edi, edi
jl 0x653b03e4
mov ecx, esi
call fcn.653b040a
mov edi, eax
test edi, edi
jl 0x653b03e4
push dword [section..data]
call ebx
mov eax, dword [eax]
push dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
mov dword [esi + 8], eax
jne 0x653b03fc
mov edi, 0x8007000e
push dword [section..data]
call ebx
mov eax, dword [eax]
push dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
jmp 0x653b036e
push dword [esi + 0x24]
mov ecx, esi
call fcn.653b01a3
mov edi, eax
jmp 0x653b03e4