joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c749
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x596908]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x599904]
push esi
push edi
mov edi, dword [ebp + 8]
test eax, eax
jne 0x40c795
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40c7b2
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x599904], eax
jmp 0x40c79e
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x40c7b2
push 0x800
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x40c81f
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x40c7cd
xor eax, eax
jmp 0x40c81f
lea eax, [ebp - 0x210]
push eax
call fcn.0051cd17
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x40c7fe
push 0x546c10
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0051eab7
add esp, 0xc
test eax, eax
jne 0x40c7c9
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0051eab7
add esp, 0xc
test eax, eax
jne 0x40c7c9
lea eax, [ebp - 0x210]
push eax
call fcn.004114cf
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0051b2d8
leave
ret

Function at 0x40cfdb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], esi
je 0x40d020
call fcn.00411cb9
mov ebx, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40d020
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x40d03c
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004159a7
mov ebx, eax
test edi, edi
je 0x40d03a
test esi, esi
je 0x40d03a
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41176b
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x53d122
call fcn.0051cc3f
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x6c], esi
jne 0x411791
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4117e5
call fcn.00406e4e
push eax
lea ecx, [ebp - 0x10]
call fcn.00401000
mov ecx, dword [edi + 0x6c]
lea edx, [ebp - 0x10]
mov eax, dword [ecx]
push edx
mov dword [ebp - 4], esi
call dword [eax + 0x8c]
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0051caf4
push eax
call fcn.004016b0
add esp, 0x14
test edi, edi
je 0x4117d8
push edi
call fcn.0051cd17
pop ecx
mov esi, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402650
mov eax, esi
call fcn.0051cc0d
ret 8
Function at 0x416c2f
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x596908]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x20], eax
mov eax, dword [0x599e48]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
test eax, eax
jne 0x416c88
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x416ca5
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x599e48], eax
jmp 0x416c91
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x416ca5
mov eax, dword [ebp - 0x20]
push ebx
push edi
push eax
push dword [ebp + 8]
call esi
jmp 0x416de2
mov eax, dword [ebp - 0x20]
and dword [eax], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.00532fea
lea eax, [ebp - 0x14]
push eax
call fcn.0051cd17
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
push edi
call fcn.0051c30e
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
lea edi, [esi + 1]
call fcn.00532fea
lea eax, [ebp - 0x14]
push eax
call fcn.0051cd17
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.0051c30e
add esp, 0x38
add edi, esi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.00532fea
lea eax, [ebp - 0x14]
push eax
call fcn.0051cd17
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.0051c30e
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
add edi, esi
call fcn.00532fea
lea eax, [ebp - 0x14]
push eax
call fcn.0051cd17
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.0051c30e
push 7
lea eax, [ebp - 0x14]
push eax
push 0x800
add edi, esi
call fcn.00532fea
add esp, 0x44
lea eax, [ebp - 0x14]
push eax
call fcn.0051cd17
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.0051c30e
lea eax, [edi + esi]
xor ecx, ecx
mov word [ebx + eax*2 + 2], cx
xor eax, eax
add esp, 0x10
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051b2d8
leave
ret
Function at 0x43ace9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test esi, esi
jne 0x43ad01
call fcn.00411cb9
mov esi, dword [eax + 0xc]
push 0x54e484
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x43ad57
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x43ad56
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x43ad37
xor esi, esi
jmp 0x43ad4d
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.0043ad5d
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4fe4f3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
test byte [esi + 4], 1
push edi
mov dword [ebp - 4], ebx
je 0x4fe50d
mov edi, dword [esi + 0xc]
jmp 0x4fe54d
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4fe526
call fcn.004126cd
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4fe53b
call fcn.004126cd
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4fe54d
call fcn.004126cd
call fcn.00411cb9
cmp dword [eax + 0x3c], 0
je 0x4fe562
push edi
mov ecx, ebx
call fcn.004fde17
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004fe725
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x7c]
test ecx, ecx
je 0x4fe585
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x7c], 0
test ebx, ebx
je 0x4fe58e
mov edi, ebx
mov dword [eax + 0x7c], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x52dc78
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x596908]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.005223d5
mov dword [ebp - 0x14], eax
cmp dword [0x59e3d8], edi
jne 0x52dd69
push 0x800
push edi
push 0x571cc0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x52dcf6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x52de49
push 0x571cc0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x52de49
push 0x571cd8
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x52de49
push eax
call ebx
push 0x571ce4
push esi
mov dword [0x59e3d8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x571cf4
push esi
mov dword [0x59e3dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x59e3e0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x59e3e8], eax
test eax, eax
je 0x52dd66
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x59e3e4], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x52dd8e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x52dd81
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x52dda3
push 4
pop eax
jmp 0x52de4b
cmp dword [ebp - 0x14], edi
je 0x52dda3
push dword [0x59e3d8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x52dd88
mov eax, dword [0x59e3e4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x52de01
cmp dword [0x59e3e8], esi
je 0x52de01
push eax
call ebx
push dword [0x59e3e8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x52de01
test eax, eax
je 0x52de01
call ecx
test eax, eax
je 0x52ddf6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x52ddf6
test byte [ebp - 8], 1
jne 0x52de01
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x52de31
mov eax, dword [0x59e3dc]
cmp eax, esi
je 0x52de2e
push eax
call ebx
test eax, eax
je 0x52de2e
call eax
mov edi, eax
test edi, edi
je 0x52de2e
mov eax, dword [0x59e3e0]
cmp eax, esi
je 0x52de2e
push eax
call ebx
test eax, eax
je 0x52de2e
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x59e3d8]
call ebx
test eax, eax
je 0x52de49
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x52de4b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051b2d8
leave
ret
Function at 0x414650
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x41dda0
lea ecx, [ebp - 0x18]
mov edx, dword fs:[0]
cmp eax, 3
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
je 0x41468e
test eax, eax
jne 0x414813
mov edi, dword [0x4389b4]
test edi, edi
je 0x414813
mov dword [ebp - 0x20], 0
jmp 0x4146b7
mov edi, dword [edi + 8]
test edi, edi
je 0x4146ed
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4146b0
mov esi, eax
push 0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [edi]
mov cl, 1
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], ecx
push esi
mov dword [ebp - 0x24], edi
call eax
mov edi, dword [ebp - 0x24]
add esp, 4
jmp 0x4146b0
test byte [ebp - 0x20], 1
je 0x414813
mov edi, dword [0x4389b4]
test edi, edi
je 0x414813
mov dword [ebp - 0x20], 0
jmp 0x414717
mov edi, dword [edi + 8]
test edi, edi
je 0x41474d
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x414710
mov esi, eax
push 0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [edi]
mov cl, 1
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], ecx
push esi
mov dword [ebp - 0x24], edi
call eax
mov edi, dword [ebp - 0x24]
add esp, 4
jmp 0x414710
test byte [ebp - 0x20], 1
je 0x414813
mov edi, dword [0x4389b4]
test edi, edi
je 0x414813
mov dword [ebp - 0x20], 0
jmp 0x414777
mov edi, dword [edi + 8]
test edi, edi
je 0x4147ad
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x414770
mov esi, eax
push 0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [edi]
mov cl, 1
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], ecx
push esi
mov dword [ebp - 0x24], edi
call eax
mov edi, dword [ebp - 0x24]
add esp, 4
jmp 0x414770
test byte [ebp - 0x20], 1
je 0x414813
mov edi, dword [0x4389b4]
test edi, edi
je 0x414813
mov dword [ebp - 0x20], 0
jmp 0x4147d7
mov edi, dword [edi + 8]
test edi, edi
je 0x41480d
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4147d0
mov esi, eax
push 0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [edi]
mov cl, 1
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], ecx
push esi
mov dword [ebp - 0x24], edi
call eax
mov edi, dword [ebp - 0x24]
add esp, 4
jmp 0x4147d0
test byte [ebp - 0x20], 1
jne 0x41482b
mov al, byte [0x4354c0]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov edi, dword [0x4389b4]
jmp 0x414836
mov edi, dword [edi + 8]
test edi, edi
je 0x414813
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x414833
mov esi, eax
push 0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [edi]
mov dword [ebp - 0x10], 0
push esi
mov dword [ebp - 0x24], edi
call eax
mov edi, dword [ebp - 0x24]
add esp, 4
jmp 0x414833
Function at 0x4148a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x43806c]
test eax, eax
je 0x4148b9
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
ja 0x4148cf
jmp 0x4148de
mov ecx, 0x43806c
call fcn.0041abf0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x4148de
cmp dword [eax], 1
mov edi, eax
jne 0x4148de
add edi, 4
mov eax, edi
pop esi
pop edi
ret
mov eax, dword [0x43806c]
test eax, eax
je 0x4148fd
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x414912
xor edi, edi
mov esi, eax
cmp eax, 1
je 0x4148d9
jmp 0x414961
mov ecx, 0x43806c
call fcn.0041abf0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x4148f2
mov eax, dword [0x4389ac]
test eax, eax
jne 0x414929
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x41499f
mov dword [0x4389ac], eax
push 0x10
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x41499f
mov dword [eax], 0
mov dword [eax + 0xc], 0x43806c
mov esi, eax
mov eax, dword [0x43806c]
test eax, eax
jne 0x414959
mov ecx, 0x43806c
call fcn.0041abf0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esi + 8]
cmp dword [esi], 0
lea edi, [esi + 4]
mov dword [esi], 1
mov dword [esi + 4], 0
mov dword [esi + 8], 0
je 0x4148d9
test ecx, ecx
je 0x4148d9
lock dec dword [ecx]
jne 0x4148d9
call fcn.00414f50
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0x10
mov edx, 4
call fcn.0042b5a0
ud2
Function at 0x415ad0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov eax, dword [0x438078]
test eax, eax
je 0x415ae8
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
ja 0x415afe
jmp 0x415b09
mov ecx, 0x438078
call fcn.0041abf0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x415b09
cmp dword [eax], 1
mov esi, eax
je 0x415b99
mov eax, dword [0x438078]
test eax, eax
je 0x415b28
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x415b3d
xor esi, esi
cmp eax, 1
je 0x415b9c
mov esi, eax
jmp 0x415b8c
mov ecx, 0x438078
call fcn.0041abf0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x415b1d
mov eax, dword [0x4389ac]
test eax, eax
jne 0x415b54
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x415ba0
mov dword [0x4389ac], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x415ba0
mov dword [eax], 0
mov dword [eax + 8], 0x438078
mov esi, eax
mov eax, dword [0x438078]
test eax, eax
jne 0x415b84
mov ecx, 0x438078
call fcn.0041abf0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esi], 1
mov dword [esi + 4], 0
add esi, 4
mov eax, esi
pop esi
ret
mov ecx, 0xc
mov edx, 4
call fcn.0042b5a0
ud2
Function at 0x41abf0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x58
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x41de90
mov esi, ecx
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
push 0x438998
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov dword [ebp - 0x24], 0x438998
mov edi, dword [esi]
test edi, edi
jne 0x41aca5
mov ebx, dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x41acc1
mov edi, eax
test ebx, ebx
je 0x41ac9d
mov eax, dword [0x4389ac]
test eax, eax
jne 0x41ac66
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x41ad5c
mov dword [0x4389ac], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x41ad5c
mov dword [eax], ebx
mov dword [eax + 4], edi
mov dword [eax + 8], 0
mov ecx, eax
mov eax, dword [0x4389b4]
nop dword [eax + eax]
mov dword [ecx + 8], eax
lock cmpxchg dword [0x4389b4], ecx
jne 0x41ac90
mov eax, edi
test edi, edi
xchg dword [esi], eax
je 0x41ace1
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edi
add esp, 0x58
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
mov ecx, 0x430380
mov edx, 0x2e
push 0x4303e0
call fcn.0042b930
add esp, 4
ud2
lea eax, [ebp - 0x64]
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x4c]
mov dword [ebp - 0x64], 0x42fd84
mov dword [ebp - 0x60], 1
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x54], str._rustc_50171c310cd15e1b2d3723766ce64e2e4d6696fclibrarycore_src_strpattern.rs
mov dword [ebp - 0x4c], 0x42fda4
mov dword [ebp - 0x48], 2
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 0x403de0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 1
call fcn.00415bc0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
call fcn.00415d90
mov ecx, 7
int 0x29
ud2
mov ecx, 0xc
mov edx, 4
call fcn.0042b5a0
ud2
Function at 0x41d970
Capabilities:
Generate random numbers via rtlgenrandom
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, esp
mov dword [esi + 0x48], ebp
mov dword [esi + 0x4c], esp
mov dword [esi + 0x58], 0xffffffff
mov dword [esi + 0x54], 0x41dfc0
lea eax, [esi + 0x50]
mov ecx, dword fs:[0]
mov dword [esi + 0x50], ecx
mov dword fs:[0], eax
mov eax, dword [0x438064]
test eax, eax
je 0x41d9bc
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
ja 0x41d9d2
jmp 0x41d9e2
mov ecx, 0x438064
call fcn.0041abf0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x41d9e2
mov edi, eax
mov eax, dword [eax]
xor eax, 1
or eax, dword [edi + 4]
je 0x41da8f
mov eax, dword [0x438064]
test eax, eax
je 0x41da94
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x41daae
mov edi, eax
test eax, eax
jne 0x41da63
mov eax, dword [0x4389ac]
test eax, eax
jne 0x41da20
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x41db18
mov dword [0x4389ac], eax
push 0x20
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x41db18
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 0x18], 0x438064
mov edi, eax
mov eax, dword [0x438064]
test eax, eax
jne 0x41da5b
mov ecx, 0x438064
call fcn.0041abf0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xorps xmm0, xmm0
lea eax, [esi + 0x30]
movaps xmmword [esi + 0x30], xmm0
push 0x10
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x41dac3
movaps xmm0, xmmword [esi + 0x30]
mov dword [edi + 4], 0
mov dword [edi], 1
movups xmmword [edi + 8], xmm0
add edi, 8
jmp 0x41dab0
mov ecx, 0x438064
call fcn.0041abf0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x41d9ff
xor edi, edi
mov eax, dword [esi + 0x50]
mov dword fs:[0], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esi + 8]
lea ecx, [esi + 0x10]
mov dword [esi + 0x18], 0x430344
mov dword [esi + 0x1c], 1
mov dword [esi + 0x20], 0
mov dword [esi + 0xc], eax
mov dword [esi + 8], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x10], edx
mov dword [esi + 0x28], ecx
lea ecx, [esi + 0x18]
mov edx, 0x430370
mov dword [esi + 0x14], 0x41c400
mov dword [esi + 0x2c], 1
call fcn.0042c6e0
ud2
mov ecx, 0x20
mov edx, 8
call fcn.0042b5a0
ud2
Function at 0x407d10
Capabilities:
Log keystrokes via polling

Disassembly:
mov al, byte [0x5d791c]
sub esp, 0xc
push esi
push edi
mov edi, ecx
test al, al
jne 0x407d43
mov eax, dword [edi]
push ecx
mov ecx, dword [eax*4 + 0x476fe0]
call fcn.004577d0
add esp, 4
test al, al
je 0x407d96
mov byte [0x5d791c], 1
pop edi
pop esi
add esp, 0xc
ret
cmp al, 1
jne 0x407d96
push ecx
mov ecx, 0x4751b0
call fcn.004577d0
add esp, 4
mov dword [esp + 8], 0x46
lea ecx, [esp + 8]
mov dword [esp + 0xc], 0
call fcn.00414120
mov esi, 0x476d08
push dword [esi]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x407d8b
mov eax, dword [esi]
mov dword [edi], eax
mov byte [0x5d791c], 0
add esi, 4
cmp esi, 0x476fe0
jne 0x407d73
pop edi
pop esi
add esp, 0xc
ret