joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4feac0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4feb09
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4fef80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x559ab0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004feb30
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004febb0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004febb0
lea ecx, [esi + 0xc]
call fcn.00540cff
lea ecx, [esi + 0x10]
call fcn.00540cff
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00500140
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00500140
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00500140
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00540d74
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00540d74
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x50cfe0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0xffffffffffffffff
push 0x55a541
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x178
push ebp
mov dword [esp + 8], ecx
push esi
push edi
lea ecx, [esp + 0x24]
call fcn.0050d660
lea ecx, [esp + 0x34]
mov dword [esp + 0x18c], 0
call fcn.0050d660
lea ecx, [esp + 0x14]
mov byte [esp + 0x18c], 1
call fcn.0050d660
mov eax, dword [esp + 0x1a0]
mov edi, dword [esp + 0x19c]
mov ebp, dword [esp + 0x198]
cmp eax, 1
mov byte [esp + 0x18c], 2
jne 0x50d05f
mov dword [edi], 0
mov dword [ebp], 0
mov eax, dword [esp + 0x194]
lea ecx, [esp + 0x24]
push eax
call fcn.0050d6d0
lea ecx, [esp + 0x24]
push ecx
call fcn.0050db80
add esp, 4
lea ecx, [esp + 0x24]
push 0x8ac0f0
call fcn.0050d750
lea edx, [esp + 0x44]
lea ecx, [esp + 0x24]
push edx
call fcn.00474230
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
je 0x50d1e4
mov esi, 0x8ac0e4
lea eax, [esp + 0x70]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x50d0da
test cl, cl
je 0x50d0d6
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x50d0da
add eax, 2
add esi, 2
test cl, cl
jne 0x50d0b6
xor eax, eax
jmp 0x50d0df
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x50d1c8
mov esi, 0x8ac0e0
lea eax, [esp + 0x70]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x50d114
test cl, cl
je 0x50d110
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x50d114
add eax, 2
add esi, 2
test cl, cl
jne 0x50d0f0
xor eax, eax
jmp 0x50d119
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x50d1c8
test byte [esp + 0x44], 0x10
mov eax, dword [esp + 0x194]
push eax
jne 0x50d171
lea ecx, [esp + 0x38]
call fcn.0050d6d0
lea ecx, [esp + 0x34]
push ecx
call fcn.0050db80
add esp, 4
lea edx, [esp + 0x70]
lea ecx, [esp + 0x34]
push edx
call fcn.0050d750
push 0
lea ecx, [esp + 0x38]
call fcn.00474230
push eax
call fcn.00531323
add esp, 8
test eax, eax
jne 0x50d1c8
inc dword [ebp]
jmp 0x50d1c8
lea ecx, [esp + 0x18]
call fcn.0050d6d0
lea ecx, [esp + 0x14]
push ecx
call fcn.0050db80
add esp, 4
lea edx, [esp + 0x70]
lea ecx, [esp + 0x14]
push edx
call fcn.0050d750
push 0
lea ecx, [esp + 0x18]
call fcn.00474230
push eax
call fcn.00531323
add esp, 8
test eax, eax
jne 0x50d1c8
mov ecx, dword [edi]
push eax
inc ecx
push edi
mov dword [edi], ecx
push ebp
lea ecx, [esp + 0x20]
call fcn.00481970
mov ecx, dword [esp + 0x1c]
push eax
call fcn.0050cfe0
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x44]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x50d0ad
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp]
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add esi, eax
mov byte [esp + 0x18c], 1
call fcn.0050d680
lea ecx, [esp + 0x34]
mov byte [esp + 0x18c], 0
call fcn.0050d680
lea ecx, [esp + 0x24]
mov dword [esp + 0x18c], 0xffffffff
call fcn.0050d680
mov ecx, dword [esp + 0x184]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x184
ret 0x10
Function at 0x50daa0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x55a5a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0050d660
mov eax, dword [esp + 0x24]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x20], 0
call fcn.0050d6d0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.0050d9d0
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.0050d680
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10

Function at 0x50f480
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
xor ebp, ebp
push esi
cmp ebx, 1
push edi
jl 0x50f49b
cmp ebx, 8
jg 0x50f49b
mov eax, 1
jmp 0x50f49d
xor eax, eax
mov esi, dword [esp + 0x14]
push str.bad_pack_level
push eax
push esi
call fcn.0050dd00
mov eax, dword [esi + 0x6af70]
add esp, 0xc
cmp eax, ebp
mov dword [esi + 0x6af78], ebp
jne 0x50f4d4
mov dword [esi + 0x6af78], 1
mov dword [esi + 0x6af70], 0x10000
mov ecx, 0x7fff
xor eax, eax
lea edi, [esi + 0x4af70]
mov dword [esi + 0x6af6c], ebp
rep stosd dword es:[edi], eax
mov ax, word [ebx*8 + 0x7b6f3a]
xor ecx, ecx
mov dword [esi + 0x6af98], eax
mov cx, word [ebx*8 + 0x7b6f38]
xor edx, edx
mov dword [esi + 0x6af9c], ecx
mov dx, word [ebx*8 + 0x7b6f3c]
xor eax, eax
mov dword [esi + 0x6afa0], edx
mov ax, word [ebx*8 + 0x7b6f3e]
cmp ebx, 2
mov dword [esi + 0x6af94], eax
jg 0x50f535
mov eax, dword [esp + 0x1c]
or byte [eax], 4
jmp 0x50f541
cmp ebx, 8
jl 0x50f541
mov eax, dword [esp + 0x1c]
or byte [eax], 2
lea edi, [esi + 0x1af70]
push 0x10000
push edi
push esi
mov dword [esi + 0x6af84], ebp
mov dword [esi + 0x6af74], ebp
call dword [esi + 0xc]
add esp, 0xc
cmp eax, ebp
mov dword [esi + 0x6af90], eax
je 0x50f5ba
cmp eax, 0xffffffff
je 0x50f5ba
cmp eax, 0x106
mov dword [esi + 0x6af8c], ebp
jae 0x50f585
push esi
call fcn.0050f7d0
add esp, 4
mov dword [esi + 0x6af7c], ebp
xor eax, eax
mov edx, dword [esi + 0x6af7c]
xor ecx, ecx
mov cl, byte [edi + eax]
and edx, 0x3ff
and ecx, 0x7fff
shl edx, 5
xor ecx, edx
inc eax
cmp eax, 2
mov dword [esi + 0x6af7c], ecx
jb 0x50f58d
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], ebp
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x510850
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x51085b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x51095e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x7b6f88]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x7b6f88]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x7b6f88]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x7b6f88]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x7b6f88]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x7b6f88]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x7b6f88]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x7b6f88]
xor eax, edx
inc ecx
dec edi
jne 0x510876
pop edi
test esi, esi
je 0x510980
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x7b6f88]
xor eax, edx
inc ecx
dec esi
jne 0x510962
pop esi
pop ebx
not eax
ret
Function at 0x510b40
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x510b5e
mov eax, 0x1000000
pop esi
add esp, 0x50
ret
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x510b78
mov eax, 0x200
pop esi
add esp, 0x50
ret
mov eax, dword [esp + 0x20]
push ebp
mov edx, eax
xor ebp, ebp
and edx, 1
push edi
je 0x510b8c
mov ebp, 1
test al, 2
je 0x510b93
or ebp, 2
test al, 4
je 0x510b9a
or ebp, 4
mov ecx, eax
and ecx, 0x10
je 0x510ba4
or ebp, 0x10
test al, 0x20
je 0x510bab
or ebp, 0x20
test ecx, ecx
je 0x510bb7
or ebp, 0x40000000
jmp 0x510bbd
or ebp, 0x80000000
or ebp, 0x1000000
test edx, edx
jne 0x510bcd
or ebp, 0x800000
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x28
mov dword [esp + 0x14], eax
jbe 0x510c7b
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x6c]
push 2
push edx
push esi
call ebx
push 0
push 0
push 0x24
push esi
call edi
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x24]
push 4
push ecx
push esi
call ebx
cmp word [esp + 0x64], 0x54ad
jne 0x510c7b
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
lea edx, [eax + 0x34]
cmp ecx, edx
jbe 0x510c7b
push 0
push 0
push eax
push esi
call edi
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x2c]
push 4
push ecx
push esi
call ebx
mov eax, dword [esp + 0x24]
cmp eax, 0x5a4d
je 0x510c75
cmp eax, 0x454e
je 0x510c75
cmp eax, 0x454c
je 0x510c75
cmp eax, 0x4550
jne 0x510c7b
or ebp, 0x400000
mov eax, dword [esp + 0x68]
pop ebx
test eax, eax
je 0x510c86
mov dword [eax], ebp
mov eax, dword [esp + 0x68]
test eax, eax
je 0x510c94
mov edx, dword [esp + 0x10]
mov dword [eax], edx
mov esi, dword [esp + 0x6c]
mov edi, dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test esi, esi
je 0x510cfe
lea eax, [esp + 0x20]
lea ecx, [esp + 0x34]
push eax
push ecx
call edi
lea edx, [esp + 0x18]
lea eax, [esp + 0x3c]
push edx
push eax
call edi
lea ecx, [esp + 0x10]
lea edx, [esp + 0x2c]
push ecx
push edx
call edi
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push ecx
call fcn.00510a80
mov edx, dword [esp + 0x24]
mov dword [esi], eax
mov eax, dword [esp + 0x20]
push edx
push eax
call fcn.00510a80
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
mov dword [esi + 4], eax
call fcn.00510a80
add esp, 0x18
mov dword [esi + 8], eax
mov esi, dword [esp + 0x70]
test esi, esi
je 0x510d41
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x3c]
push eax
push ecx
call edi
lea edx, [esp + 0x64]
lea eax, [esp + 0x60]
push edx
lea ecx, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
and edx, 0xffff
and eax, 0xffff
shl edx, 0x10
or edx, eax
mov dword [esi], edx
pop edi
pop ebp
xor eax, eax
pop esi
add esp, 0x50
ret
Function at 0x510f20
Capabilities:
Write file on windows

Disassembly:
mov edx, ecx
push ebx
push esi
push edi
mov ebx, dword [edx + 0x18]
test ebx, ebx
je 0x510f70
mov edi, dword [edx + 0x1c]
mov eax, dword [esp + 0x14]
mov esi, dword [edx + 0x20]
lea ecx, [edi + eax]
cmp ecx, esi
jb 0x510f4c
pop edi
pop esi
mov dword [edx + 0xc], 0x30000
xor eax, eax
pop ebx
ret 8
mov esi, dword [esp + 0x10]
mov ecx, eax
add edi, ebx
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [edx + 0x1c]
pop edi
add ecx, eax
pop esi
mov dword [edx + 0x1c], ecx
pop ebx
ret 8
mov eax, dword [edx]
test eax, eax
je 0x510f98
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x14]
push 0
push edx
mov edx, dword [esp + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
ret 8
pop edi
pop esi
mov dword [edx + 0xc], 0x1000000
xor eax, eax
pop ebx
ret 8

Function at 0x5113c0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov edx, dword [ebx + 0x58]
test edx, edx
je 0x51142a
mov eax, dword [ebx + 0x60]
mov ebp, dword [ebx + 0x5c]
cmp eax, ebp
jae 0x51147b
mov ecx, dword [esp + 0x14]
sub ebp, eax
cmp ebp, ecx
jbe 0x5113e6
mov ebp, ecx
mov ecx, ebp
lea esi, [eax + edx]
mov eax, dword [esp + 0x10]
mov edx, ecx
push edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 0x60]
mov ecx, dword [ebx + 0x48]
mov eax, dword [ebx + 0x4c]
add edx, ebp
add ecx, ebp
push eax
mov dword [ebx + 0x60], edx
mov dword [ebx + 0x48], ecx
call fcn.00510850
add esp, 0xc
mov dword [ebx + 0x4c], eax
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, dword [ebx + 0x50]
test eax, eax
je 0x511474
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push 0
push ecx
push edx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x51147b
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 0x48]
add ecx, eax
push eax
mov eax, dword [ebx + 0x4c]
push esi
push eax
mov dword [ebx + 0x48], ecx
call fcn.00510850
add esp, 0xc
mov dword [ebx + 0x4c], eax
mov eax, dword [esp + 0x14]
pop esi
pop ebp
pop ebx
ret 8
mov dword [ebx + 0xc], 0x1000000
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8

Function at 0x531323
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x531343
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00530166
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x531366
test byte [esp + 8], 2
je 0x531366
call fcn.005301d9
mov dword [eax], 0xd
call fcn.005301e2
mov dword [eax], 5
jmp 0x53133f
xor eax, eax
ret
Function at 0x541cce
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x541cf0
cmp dword [edi + 0x3c], 0
jne 0x541cf0
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0054b829
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.00541d1d
pop edi
pop esi
pop ebx
ret 8

Function at 0x543381
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5433b9
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0054121b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005411f3
jmp 0x5433c5
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x544bf7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x544c39
call fcn.0054b829
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x544c39
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x544c30
xor eax, eax
jmp 0x544c41
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00544c47
pop edi
pop esi
pop ebx
ret 4

Function at 0x54bd3e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x54bd6c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x54bd8a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0054bca4
jmp 0x54bd8a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x54bd8a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0054bca4
test edi, edi
mov eax, edi
jne 0x54bd74
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x54eb5d
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x54eb85
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x54eb96
push 2
call edi
test ax, ax
jge 0x54eb96
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.005429b7
cmp dword [esi + 0x30], ebx
jne 0x54ec70
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.005429b7
cmp eax, dword [esp + 0x34]
jne 0x54ec70
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x54ec0c
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x54ec51
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x54ec70
cmp eax, 0x205
je 0x54ec70
cmp eax, 0x201
je 0x54ec70
cmp eax, 0x204
je 0x54ec70
cmp eax, ebx
jne 0x54ec37
cmp dword [esp + 0x1c], 0x1b
je 0x54ec70
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x911b7c]
jbe 0x54ec66
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x54ebc9
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x602472
Capabilities:
Execute anti-debugging instructions

Disassembly:
push 0xf05f3930
jmp 0x60249f
mov word [esp + 1], cx
lea esp, [esp]
mov dword [esp], ecx
mov dword [esp + 0x10], edi
lea esp, [esp + 0x10]
jmp 0x602499
pushfd
jmp 0x60241b
sub esp, 0xe
jmp 0x602554
bsf dx, cx
xchg di, cx
setle cl
lea esp, [esp + 2]
jmp 0x6024e5
rol edi, 0xe
jmp 0x602531
mov esi, dword [esp + 0x38]
rdtsc
dec al
jp 0x6024cf
jnp 0x6024f9
mov dword [reloc.WINMM.dll_waveOutUnprepareHeader], ebx
in al, dx
inc ecx
invalid
rol edi, 0xe
jmp 0x602531
setle cl
lea esp, [esp + 2]
jmp 0x6024e5
add esp, 4
btr eax, ecx
lea esp, [esp + 2]
jmp 0x602643
lea ebp, [esp + 0xc]
xchg bh, al
sub esp, 6
jge 0x60251b
jl 0x602697
add ecx, 0xdf191b6f
jmp 0x603a36
jbe 0x6024a8
bsf dx, cx
xchg di, cx
jmp 0x602512
xor ecx, 0x2c25a1f7
bswap edx
mov dx, 0x1195
jmp 0x602592
push esp
jmp 0x602563
not edx
call fcn.0060257c
jns 0x6025af
js 0x6025af
fld dword [edi - 0x29]
mov dl, 0x41
lea esp, [ecx - 8]
outsb dx, byte [esi]
or eax, edi
cmp dl, byte [ebp - 0x3c]
ja 0x60260b
test eax, 0x24648dc8
add al, 0x4e
lea esp, [esp + 4]
dec esi
mov dh, bh
xchg dx, cx
jmp 0x6025dd
xor dl, ah
inc cl
rdtsc
jmp 0x60266f
rdtsc
jmp 0x60266f
lea eax, [eax - 0x8c]
mov ax, word [esp]
ror esi, 0
mov ax, word [esp]
btc dx, bx
jmp 0x602628
xchg dl, al
mov ebx, esi
clc
jne 0x602579
push esp
xor ecx, 0x2c25a1f7
bswap edx
mov dx, 0x1195
not edx
jmp 0x602594
je 0x6025bb
xor dl, ah
inc cl
jmp 0x6025c7
sub esp, 0xb4
mov edi, esp
mov ebx, 0x7dc0912c
lea eax, [ebp*4]
jmp 0x602609
sub esp, 7
jo 0x602680
sub esp, 0x1e
lea edx, reloc.WINMM.dll_waveOutUnprepareHeader
pop ecx
jmp 0x6026b9
ror esi, 0
mov ah, 0x4e
bswap eax
mov eax, 0x488650b5
mov eax, dword [esp]
jmp 0x602659
sub esp, 0x1e
lea edx, reloc.WINMM.dll_waveOutUnprepareHeader
jmp 0x6026d5
add esp, 4
btr eax, ecx
lea esp, [esp + 2]
jmp 0x602643
bsr edx, ebp
je 0x6026fe
mov ecx, 0xeedfa486
mov edx, eax
jmp 0x6026e8
neg ah
lea esp, [esp + 1]
jmp 0x6026dc
pop ecx
neg ah
lea esp, [esp + 1]
lea esp, [esp + 0x20]
sub esi, 0x4e6a36b8
jmp 0x6026a3
mov eax, 0xeb4e6a36
mov ebx, 0xf007503
xor dword [ecx + reloc.WINMM.dll_waveOutUnprepareHeader], edx
add esi, dword [ebp]
rdtsc
xchg ecx, eax
inc cx
jae 0x602707
jb fcn.00602759
aaa
ret
mov ecx, 0xeedfa486
mov edx, eax
jmp 0x6026e8
call 0x602c77
mov dword [reloc.WINMM.dll_waveOutUnprepareHeader], eax
jmp 0x6026e2
bswap eax
call 0x603a5b
mov ch, 0x2c
mov byte [0xa5f634c5], al
cmp dword [ecx - reloc.WINMM.dll_waveOutUnprepareHeader], ebp
sti
ror byte [ebp - 0x75], cl
mov dword [reloc.WINMM.dll_waveOutUnprepareHeader], ebp
sal bh, 1
fdiv dword [esi + ecx*8 + 0x75]
aam 0xb0
mov byte [ebx - 0x14397519], cl
xor eax, 0xa30fcb8b
ret 0x1877

Function at 0x6024c0
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dword [esp + 0x10], esi
call fcn.00602472
pop word [esp + 1]
lea esp, [esp + 1]
lea esp, [esp + 3]
jmp 0x602490

Function at 0x60257c
Capabilities:
Execute anti-debugging instructions

Disassembly:
ror esi, 0
mov ecx, dword [esp]
sub ecx, edi
jmp 0x602599
Function at 0x602ff4
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov cl, al
rol ecx, cl
call fcn.00603036
mov ecx, 0x2ddebb2b
sahf
ror dword [edx + eax*8 - 0x5b], 1
push esp
xchg ebp, eax
pop ecx
lea eax, [edi + 0x50]
jmp 0x60307a
mov ecx, 0x65fb1e0d
btc ecx, edi
jbe 0x6030a5
ja 0x6030a5
jmp 0x69fb2ffa
cmp ebp, eax
jmp 0x603308
ja 0x6031c1
jbe 0x603a63
xchg edx, eax
adc dword [ecx + reloc.WINMM.dll_waveOutUnprepareHeader], eax
xchg edx, eax
add byte [edi - 0x6e], ah
sub al, 0x93
or ah, byte [ebp + 0x50ee47d4]
push eax
jns 0x6030ad
js 0x6030ad
retf 0xcb5b
mov ecx, ebx
bt edx, eax
ja 0x603a82
mov eax, 0x601d7c07
jmp 0x603ac9
mov eax, 0x601d7c07
rdtsc
jmp 0x603aa0
pushal
mov ah, 0x80
mov dword [esp + 0x14], edi
xchg ch, al
popal
jmp 0x603ab0
cmc
jnp 0x603ae3
mov ah, byte [esp]
add cx, 0x2a2d
jmp 0x603acd
rdtsc
jmp 0x603aa0
lea eax, [edi + 0x40]
mov ecx, 0x8ffbd067
rol cx, 6
jmp 0x603b13
mov ah, byte [esp]
add cx, 0x2a2d
jmp 0x603acd
jne 0x603b29
mov cx, word [esp]
bsr cx, cx
jmp 0x603b31
mov cx, word [esp]
bsr cx, cx
jmp 0x603c10
setp cl
lea ecx, [ebx - 0x11]
jmp 0x603b7b
lea ecx, [ebx - 0x11]
setbe cl
add cx, 0xdb97
ror ecx, cl
jmp 0x603b65
lea ecx, [ebp - 0x80]
pushal
call fcn.00603b87
sub al, 0xa9
cmp dword [eax - 0x55], ebx
sbb al, 0x4e
retf 0x3f58
setbe cl
add cx, 0xdb97
ror ecx, cl
jmp 0x603b65
mov ecx, dword [esp]
sub eax, edx
jae 0x603b36
setp cl
jmp 0x603b42