joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f1e0
Capabilities:
Print debug messages

Disassembly:
push edi
pxor xmm0, xmm0
lea edi, [esp + 8]
and esp, 0xfffffff0
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
sub esp, 0x84
movups xmmword [ebp - 0x27], xmm0
movdqu xmm1, xmmword [str.Error_cleaning_up_spin_keys_for_thread]
movdqu xmm2, xmmword [0x4c3cf0]
movdqu xmm3, xmmword [0x4c3d00]
movups xmmword [ebp - 0x47], xmm0
mov eax, dword [0x5161a8]
mov dword [ebp - 0xc], eax
xor eax, eax
movups xmmword [ebp - 0x77], xmm1
movups xmmword [ebp - 0x67], xmm2
movups xmmword [ebp - 0x57], xmm3
movups xmmword [ebp - 0x37], xmm0
movups xmmword [ebp - 0x1c], xmm0
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
lea edx, [ebp - 0x50]
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__ultoa]
cmp byte [ebp - 0x50], 0
je 0x41f29b
mov eax, 0x27
lea edx, [ebp - 0x77]
jmp 0x41f26d
cmp eax, 0x6a
je 0x41f28a
mov ecx, eax
add eax, 1
cmp byte [edx + eax], 0
jne 0x41f268
cmp eax, 0x6a
je 0x41f28a
add ecx, 2
mov byte [ebp + eax - 0x77], 0xa
mov byte [ebp + ecx - 0x77], 0
mov dword [esp], edx
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
sub esp, 4
call sub.msvcrt.dll_abort
mov ecx, 0x28
mov eax, 0x27
lea edx, [ebp - 0x77]
jmp 0x41f280

Function at 0x41f620
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x516bc0], 1
je 0x41f6d8
push edi
mov eax, 0x516bc0
push esi
push ebx
sub esp, 0x10
call fcn.0041efc0
lea esi, [eax + 4]
mov ebx, eax
mov dword [esp], esi
call fcn.0041e850
mov edi, dword [0x516bc0]
test edi, edi
jne 0x41f690
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
mov dword [0x4bc234], eax
cmp eax, 0xffffffff
je 0x4b6055
mov dword [0x516bc0], 1
mov dword [esp], esi
call fcn.0041eb80
test ebx, ebx
je 0x41f6ca
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop edi
jmp fcn.0041f2b0
cmp edi, 1
je 0x41f672
mov dword [esp], 2
call dword [0x4bc220]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x516bc0
mov dword [esp + 4], str._once__p_is__d_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], esi
call fcn.0041eb80
test ebx, ebx
jne 0x41f67e
add esp, 0x10
pop ebx
pop esi
pop edi
ret
ret
call sub.msvcrt.dll_abort
Function at 0x41f6e0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
call fcn.0041f3a0
mov edx, dword [entry3]
test edx, edx
je 0x41f810
mov ebx, eax
test eax, eax
je 0x41f810
mov dword [eax + 0x24], 1
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
mov dword [ebx + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
mov dword [ebx + 0x1c], 0xffffffff
mov dword [ebx + 0x18], eax
sub esp, 0x10
lea eax, [ebx + 0x38]
mov dword [esp], eax
call fcn.0041eec0
cmp eax, 1
je 0x41f81c
mov ebp, dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov dword [ebx + 0x38], 0xffffffff
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x14], 0
call ebp
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentThread]
mov esi, eax
call ebp
lea edx, [ebx + 0x14]
mov dword [esp + 8], edi
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je fcn.004b605a
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_GetThreadPriority]
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x6c], eax
movzx eax, byte [ebx + 0x20]
sub esp, 4
and eax, 0xffffffcf
or eax, 0x10
mov byte [ebx + 0x20], al
mov eax, dword [0x4bc234]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
sub esp, 8
test eax, eax
je 0x41f821
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x2c
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0041f1e0
jmp fcn.004b605a

Function at 0x41f830
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.0041f620
mov eax, dword [0x4bc234]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub esp, 4
test eax, eax
je 0x41f858
add esp, 0x1c
ret
add esp, 0x1c
jmp fcn.0041f6e0
Function at 0x41fb20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x41fb50
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x41fc50
add esp, 0x14
mov eax, 1
pop ebx
pop esi
ret 0xc
cmp eax, 1
je 0x41fc20
cmp eax, 3
jne 0x41fb39
mov eax, dword [0x4bc234]
cmp eax, 0xffffffff
je 0x41fb39
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x41fb39
test byte [eax + 0x20], 0x30
je 0x41fc88
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x41fb93
call fcn.0041f860
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x41fbc5
mov dword [esp], eax
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
mov eax, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x41fbb7
mov dword [esp], eax
call esi
sub esp, 4
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call fcn.0041ed00
lea eax, [ebx + 0x38]
mov dword [esp], eax
call fcn.0041eec0
cmp eax, 1
je 0x41fd56
mov eax, dword [ebx + 0xb0]
mov dword [ebx + 0x38], 0xffffffff
test eax, eax
je 0x41fd4a
mov eax, dword [0x4bc234]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
sub esp, 8
jmp 0x41fb39
mov eax, dword [0x516b98]
test eax, eax
je 0x41fc6c
mov dword [esp + 4], 0x41ef30
mov dword [esp], 1
call eax
mov dword [0x516b9c], eax
add esp, 0x14
mov eax, 1
pop ebx
pop esi
ret 0xc
mov eax, dword [0x516b9c]
test eax, eax
je 0x41fb39
mov edx, dword [0x516b94]
test edx, edx
je 0x41fc6c
mov dword [esp], eax
call edx
mov dword [0x516b9c], 0
add esp, 0x14
mov eax, 1
pop ebx
pop esi
ret 0xc
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x41fcfc
test eax, eax
je 0x41fca2
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
sub esp, 4
mov eax, dword [ebx + 0xb4]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x68], 1
test eax, eax
je 0x41fcbf
call fcn.0041f860
test byte [ebx + 0x24], 4
je 0x41fd3a
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x41fbc5
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebx + 0x1c]
mov dword [ebx + 0x14], 0
sub esp, 4
mov dword [esp], eax
call fcn.0041ed00
lea eax, [ebx + 0x38]
jmp 0x41fbd3
test eax, eax
je 0x41fd3a
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebx + 0x1c]
mov dword [ebx + 0x18], 0
sub esp, 4
mov dword [esp], eax
call fcn.0041ed00
lea eax, [ebx + 0x38]
mov dword [esp], eax
call fcn.0041eec0
cmp eax, 1
je 0x41fd56
mov dword [ebx + 0x38], 0xffffffff
jmp 0x41fb39
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call fcn.0041ed00
lea eax, [ebx + 0x38]
jmp 0x41fd21
mov eax, ebx
call fcn.0041f460
jmp 0x41fbf9
call fcn.0041f1e0
lea esi, [esi]
nop
Function at 0x420030
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov eax, dword [0x5161a8]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx]
test edi, edi
je 0x420170
cmp eax, 1
je 0x420095
mov eax, ebx
call fcn.0041efc0
mov esi, eax
lea eax, [eax + 4]
mov dword [esp], eax
mov dword [esp + 0x1c], eax
call fcn.0041e850
mov ebp, dword [ebx]
test ebp, ebp
je 0x4200b0
cmp ebp, 1
jne 0x420140
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.0041eb80
test esi, esi
je 0x420095
mov eax, esi
call fcn.0041f2b0
xor eax, eax
mov edx, dword [esp + 0x2c]
sub edx, dword [0x5161a8]
jne 0x4201ba
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x20], 0x41f370
mov dword [esp + 0x24], esi
call fcn.0041f620
mov eax, dword [0x4bc234]
mov ebp, dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x4201a8
mov eax, dword [eax + 0xc]
mov dword [esp + 0x28], eax
lock or dword [esp], 0
call fcn.0041f620
mov eax, dword [0x4bc234]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x420190
lea ecx, [esp + 0x20]
mov dword [eax + 0xc], ecx
lock or dword [esp], 0
call edi
call fcn.0041f620
mov eax, dword [0x4bc234]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x420180
mov edx, dword [esp + 0x28]
mov dword [eax + 0xc], edx
mov dword [ebx], 1
jmp 0x42007e
mov dword [esp], 2
call dword [0x4bc220]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], ebx
mov dword [esp + 4], str._once__p_is__d_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x42007e
mov eax, 0x16
jmp 0x420097
call fcn.0041f6e0
test eax, eax
jne 0x420126
jmp 0x4b607f
call fcn.0041f6e0
test eax, eax
jne 0x420102
jmp 0x4b6074
call fcn.0041f6e0
test eax, eax
jne 0x4200dc
jmp 0x4b606d
call fcn.004137c0
nop
mov eax, dword [pe_dos_header]
ud2
lea eax, [esp + 0x20]
mov dword [0], eax
ud2
mov eax, dword [esp + 0x28]
mov dword [0], eax
ud2

Function at 0x420400
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
call fcn.0041f620
mov eax, dword [0x4bc234]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x420478
lea ebp, [ebx + 0x38]
xor edi, edi
mov dword [esp], ebp
call fcn.0041eed0
mov eax, dword [ebx + 0x28]
cmp dword [esp + 0x30], eax
jae 0x420454
mov eax, dword [ebx + 0x30]
mov edx, dword [esp + 0x30]
cmp byte [eax + edx], 0
je 0x420454
mov eax, dword [ebx + 0x2c]
mov edi, dword [eax + edx*4]
mov dword [esp], ebp
call fcn.0041ef20
mov dword [esp], esi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, edi
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0041f6e0
mov ebx, eax
jmp 0x42042b
Function at 0x420490
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [esp + 0x40]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esp + 0x14], eax
call fcn.0041f620
mov eax, dword [0x4bc234]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x4205b0
lea edi, [ebx + 0x38]
mov dword [esp], edi
call fcn.0041eed0
cmp esi, dword [ebx + 0x28]
jae 0x420510
mov edx, dword [ebx + 0x2c]
mov eax, dword [esp + 0x44]
mov dword [edx + esi*4], eax
mov eax, dword [ebx + 0x30]
mov byte [eax + esi], 1
mov dword [esp], edi
call fcn.0041ef20
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
xor eax, eax
sub esp, 4
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
lea ebp, [esi + 1]
lea eax, [ebp*4]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_realloc
test eax, eax
je 0x4205bc
mov dword [esp + 0x1c], eax
mov dword [esp + 4], ebp
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call sub.msvcrt.dll_realloc
mov edx, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x18], eax
je 0x4205bc
mov ecx, dword [ebx + 0x28]
mov eax, ebp
mov dword [esp + 4], 0
mov dword [esp + 0x1c], edx
sub eax, ecx
lea ecx, [edx + ecx*4]
shl eax, 2
mov dword [esp], ecx
mov dword [esp + 8], eax
call sub.msvcrt.dll_memset
mov eax, dword [ebx + 0x28]
mov edx, dword [esp + 0x18]
mov ecx, ebp
mov dword [esp + 4], 0
sub ecx, eax
add eax, edx
mov dword [esp + 8], ecx
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x28], ebp
mov dword [ebx + 0x2c], edx
mov dword [ebx + 0x30], eax
jmp 0x4204d8
call fcn.0041f6e0
mov ebx, eax
jmp 0x4204c5
mov dword [esp], edi
call fcn.0041ef20
mov eax, 0xc
jmp 0x420500

Function at 0x420640
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.0041f620
mov eax, dword [0x4bc234]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub esp, 4
test eax, eax
je 0x420668
mov eax, dword [eax + 0x18]
add esp, 0x1c
ret
call fcn.0041f6e0
test eax, eax
jne 0x42065d
add esp, 0x1c
ret

Function at 0x4206d0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.0041f620
mov eax, dword [0x4bc234]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub esp, 4
test eax, eax
je 0x4206f8
add eax, 0xc
add esp, 0x1c
ret
call fcn.0041f6e0
test eax, eax
jne 0x4206ed
jmp 0x4206f0
Function at 0x420730
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
call fcn.0041f830
mov dword [eax + 4], esi
mov ebx, eax
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x420752
call fcn.0041f860
test byte [ebx + 0x20], 0x30
jne 0x42076c
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_longjmp]
mov eax, dword [0x4bc234]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov ebx, eax
push edx
test eax, eax
je 0x4207ad
cmp dword [ebx + 0x14], 0
mov eax, dword [eax + 0x18]
je 0x4207ed
mov dword [ebx + 0x68], 1
mov esi, dword [ebx + 4]
test eax, eax
je 0x4207a2
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push eax
xor eax, eax
mov dword [ebx + 0x18], eax
test byte [ebx + 0x24], 4
jne 0x4207b6
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
push ecx
mov dword [ebx + 0x14], eax
mov eax, ebx
call fcn.0041f600
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [0x4bc234]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
push edx
push edx
jmp 0x4207ad
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x420801
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push eax
xor eax, eax
mov esi, dword [ebx + 4]
mov dword [ebx + 0x18], eax
jmp 0x4207ce

Function at 0x420810
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x516bc8]
test eax, eax
jne 0x420820
xor eax, eax
ret
sub esp, 0x1c
call fcn.0041f620
mov eax, dword [0x4bc234]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub esp, 4
test eax, eax
je 0x420860
mov edx, dword [eax + 0x10]
test edx, edx
jle 0x420850
xor eax, eax
add esp, 0x1c
ret
test byte [eax + 0x20], 3
je 0x420844
mov eax, dword [eax + 0x24]
and eax, 1
jmp 0x420846
call fcn.0041f6e0
test eax, eax
jne 0x42083d
jmp 0x420844

Function at 0x420870
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.0041f620
mov eax, dword [0x4bc234]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub esp, 4
test eax, eax
je 0x4208b0
mov edx, dword [esp + 0x20]
test edx, edx
jle 0x4208a0
lock add dword [eax + 0x10], 1
add esp, 0x1c
ret
lock sub dword [eax + 0x10], 1
add esp, 0x1c
ret
call fcn.0041f6e0
test eax, eax
jne 0x42088d
add esp, 0x1c
ret
Function at 0x4209b0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call fcn.0041f620
mov eax, dword [0x4bc234]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x420a20
test byte [ebx + 0x20], 0xc
jne 0x4209e0
mov eax, dword [0x516bc8]
test eax, eax
jne 0x4209f0
add esp, 0x14
pop ebx
pop esi
ret
lea esi, [ebx + 0x1c]
mov dword [esp], esi
call fcn.0041e850
movzx eax, byte [ebx + 0x20]
test al, 3
je 0x420a12
mov edx, dword [ebx + 0x24]
test dl, 1
je 0x420a12
mov ecx, dword [ebx + 0x10]
test ecx, ecx
jle 0x420a31
mov dword [esp], esi
call fcn.0041eb80
add esp, 0x14
pop ebx
pop esi
ret
call fcn.0041f6e0
mov ebx, eax
test eax, eax
jne 0x4209d1
add esp, 0x14
pop ebx
pop esi
ret
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [ebx + 0x24], edx
mov byte [ebx + 0x20], al
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x420a51
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_ResetEvent]
push eax
mov dword [esp], esi
call fcn.0041eb80
call fcn.004208c0
nop
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x20]
test eax, eax
je 0x420ae0
mov dword [esp], eax
call fcn.0041e4e0
mov edi, eax
mov eax, 0xfffffffe
cmp eax, edi
mov eax, 0
sbb eax, edx
jb 0x420b20
call fcn.0041f620
mov eax, dword [0x4bc234]
mov esi, edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x420b80
test edi, edi
je 0x420afa
call fcn.004209b0
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x420b58
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0041e600
call fcn.004209b0
add esp, 0x10
xor eax, eax
pop ebx
pop esi
pop edi
ret
call fcn.0041f620
mov eax, dword [0x4bc234]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub esp, 4
test eax, eax
je 0x420b70
call fcn.004209b0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
sub esp, 4
call fcn.004209b0
add esp, 0x10
xor eax, eax
pop ebx
pop esi
pop edi
ret
call fcn.0041f620
mov eax, dword [0x4bc234]
mov esi, 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
jne 0x420ab2
call fcn.0041f6e0
mov ebx, eax
jmp 0x420ab2
mov dword [esp], esi
call dword [sym.imp.KERNEL32.DLL_Sleep]
sub esp, 4
jmp 0x420ace
call fcn.0041f6e0
jmp 0x420afa
call fcn.0041f6e0
mov ebx, eax
jmp 0x420aae
Function at 0x420b90
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
call fcn.0041f620
mov eax, dword [0x4bc234]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x420c08
test esi, esi
je 0x420be0
call fcn.004209b0
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x420c18
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0041e600
call fcn.004209b0
add esp, 0x14
xor eax, eax
pop ebx
pop esi
ret
call fcn.004209b0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
sub esp, 4
call fcn.004209b0
add esp, 0x14
xor eax, eax
pop ebx
pop esi
ret
call fcn.0041f6e0
mov ebx, eax
jmp 0x420bb5
mov dword [esp], esi
call dword [sym.imp.KERNEL32.DLL_Sleep]
sub esp, 4
jmp 0x420bd1
Function at 0x48d670
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
sub esp, 0x2c
mov eax, dword [ecx + 4]
test eax, eax
je 0x48d690
mov edx, dword [ecx]
mov dword [esp], edx
call eax
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebp, dword [sym.imp.msvcrt.dll__errno]
mov ebx, 4
lea esi, [esp + 0x1c]
nop
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov eax, dword [edi + 8]
mov dword [esp], eax
call sub.msvcrt.dll__read
test eax, eax
jle 0x48d6d0
add esi, eax
sub ebx, eax
jne 0x48d6a0
mov eax, dword [esp + 0x1c]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 0xffffffff
jne 0x48d6dc
call ebp
cmp dword [eax], 4
je 0x48d6a0
mov dword [esp], str.random_device_could_not_be_read
call fcn.004b4c80
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov dword [ecx], fcn.0048d8c0
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
mov eax, dword [eax - 4]
test eax, eax
mov eax, dword [ecx + 4]
jg 0x48d718
mov dword [eax - 4], 1
ret 4
lock add dword [eax - 4], 1
ret 4
Function at 0x403ba1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
je 0x403bc8
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
je 0x403bc8
mov edx, dword [ebp + 8]
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
cmp eax, 0x104
jb 0x403bf5
push 0
push 0x10
push 0x4c0824
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x403be1
xor al, al
jmp 0x403c4a
push 0x4b02d8
push 0x4c0824
call sub.MSVCRT.dll_strcat
add esp, 8
jmp 0x403c48
mov eax, dword [ebp + 8]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x4c0824
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
movsx ecx, byte [eax - 1]
cmp ecx, 0x5c
jne 0x403c34
mov edx, dword [ebp - 4]
mov byte [edx + 0x4c0824], 0
jmp 0x403c48
mov eax, dword [ebp - 4]
mov byte [eax + 0x4c0824], 0x5c
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x4c0825], 0
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x408f16
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x408f6d
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x408f54
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.00408e35
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x3c]
and edx, 0x10
test edx, edx
je 0x408f67
call dword [sym.imp.USER32.dll_EmptyClipboard]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x41973a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
cmp dword [ebp + 8], 0xd
jne 0x419772
mov ecx, dword [ebp - 0x1c]
add ecx, 0x39c
call fcn.00407596
test eax, eax
je 0x419765
mov ecx, dword [ebp - 0x1c]
call fcn.00419a06
jmp 0x41976d
mov ecx, dword [ebp - 0x1c]
call fcn.00419976
jmp 0x419970
cmp dword [ebp + 8], 9
jne 0x4198c2
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movsx eax, ax
and eax, 0x8000
test eax, eax
jne 0x41982b
mov ecx, dword [ebp - 0x1c]
add ecx, 0x25c
call fcn.00407596
test eax, eax
je 0x4197b6
mov ecx, dword [ebp - 0x1c]
add ecx, 0x4dc
call fcn.00417bc3
jmp 0x419826
mov ecx, dword [ebp - 0x1c]
add ecx, 0x4dc
call fcn.00407596
test eax, eax
je 0x4197d8
mov ecx, dword [ebp - 0x1c]
add ecx, 0x39c
call fcn.00417bc3
jmp 0x419826
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
mov ecx, dword [ebp - 0x1c]
add ecx, 0x124
call fcn.00416965
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0x124
call fcn.00416994
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0xc]
push edx
call fcn.004137b5
add esp, 8
mov eax, dword [ebp - 0x1c]
add eax, 0x124
push eax
call fcn.00413844
add esp, 4
jmp 0x4198bd
mov ecx, dword [ebp - 0x1c]
add ecx, 0x25c
call fcn.00407596
test eax, eax
je 0x41988d
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp - 0x1c]
add ecx, 0x1c0
call fcn.00416965
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0x1c0
call fcn.00416994
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x18]
push edx
call fcn.004137b5
add esp, 8
mov eax, dword [ebp - 0x1c]
add eax, 0x1c0
push eax
call fcn.00413844
add esp, 4
jmp 0x4198bd
mov ecx, dword [ebp - 0x1c]
add ecx, 0x4dc
call fcn.00407596
test eax, eax
je 0x4198af
mov ecx, dword [ebp - 0x1c]
add ecx, 0x25c
call fcn.00417bc3
jmp 0x4198bd
mov ecx, dword [ebp - 0x1c]
add ecx, 0x4dc
call fcn.00417bc3
jmp 0x419970
cmp dword [ebp + 8], 0x20
jne 0x419936
mov ecx, dword [ebp - 0x1c]
add ecx, 0x25c
call fcn.00407596
test eax, eax
je 0x4198e4
mov ecx, dword [ebp - 0x1c]
call fcn.00419976
jmp 0x419934
mov ecx, dword [ebp - 0x1c]
add ecx, 0x39c
call fcn.00407596
test eax, eax
je 0x419900
mov ecx, dword [ebp - 0x1c]
call fcn.00419a06
jmp 0x419934
mov ecx, dword [ebp - 0x1c]
add ecx, 0x4dc
call fcn.00407596
test eax, eax
je 0x419934
mov ecx, dword [ebp - 0x1c]
add ecx, 0x4dc
call fcn.0040750e
neg eax
sbb eax, eax
inc eax
push eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0x4dc
call fcn.0040752c
jmp 0x419970
cmp dword [ebp + 8], 0x25
jne 0x41994c
mov ecx, dword [ebp - 0x1c]
add ecx, 0x25c
call fcn.00417bc3
jmp 0x419970
cmp dword [ebp + 8], 0x27
jne 0x419962
mov ecx, dword [ebp - 0x1c]
add ecx, 0x39c
call fcn.00417bc3
jmp 0x419970
cmp dword [ebp + 8], 0x1b
jne 0x419970
mov ecx, dword [ebp - 0x1c]
call fcn.00419a06
mov esp, ebp
pop ebp
ret 4