joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009b40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10009b66
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push ecx
push esi
call fcn.1000a9c0
add esp, 0xc
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x10009c50
Capabilities:
Get session information

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
or edi, 0xffffffff
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
cmp esi, 0xffffffff
jne 0x10009cc0
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
push 1
push 0
push 0
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
test eax, eax
je 0x10009ce8
mov edx, dword [esp + 8]
mov esi, dword [esp + 0x10]
xor eax, eax
mov ecx, esi
test edx, edx
jle 0x10009cb4
cmp dword [ecx + 8], 0
je 0x10009cb2
inc eax
add ecx, 0xc
cmp eax, edx
jl 0x10009c98
push esi
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, edi
pop edi
pop esi
pop ecx
ret
mov edi, dword [ecx]
push esi
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, edi
pop edi
pop esi
pop ecx
ret
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x14]
push eax
push 8
push esi
push 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x10009ce8
mov eax, dword [esp + 0x10]
cmp dword [eax], 0
push eax
cmove edi, esi
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x10009e50
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x228
push ebx
xor ebx, ebx
push edi
mov dword [esp + 0x14], 0x750052
mov dword [esp + 0x18], 0x6e
cmp dword [0x1000155c], ebx
je 0x10009e7e
mov eax, dword [0x1000147c]
mov ecx, 0x10001b4c
jmp 0x10009e85
mov ecx, 0x10001a14
mov eax, ecx
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [esp + 0x14]
push edx
push 0x10001af8
push ecx
push eax
lea eax, [esp + 0x34]
push 0x10001ae0
push eax
call edi
add esp, 0x18
push ebx
lea ecx, [esp + 0xc]
push ecx
push ebx
xor eax, eax
cmp dword [0x1000155c], ebx
push 0xf023f
push ebx
setne al
push ebx
push ebx
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x28], ebx
lea eax, [eax + eax - 0x7fffffff]
push eax
call dword [fcn.10001824]
test eax, eax
jne 0x1000a00b
cmp dword [esp + 0x234], ebx
je 0x10009f0e
mov ecx, dword [0x100014e8]
mov edx, dword [esp + 8]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
add esp, 0x228
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 0x20a
push 8
mov dword [esp + 0x2c], ebx
call ebp
push eax
call fcn.1000abd0
mov esi, eax
cmp esi, ebx
je 0x10009ffe
mov eax, dword [0x100014ec]
push 0x10001aa4
push eax
push 0x1000189c
push esi
call edi
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
push ebx
lea edx, [esp + 0x20]
push edx
push ebx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x20]
push 0x10001aa4
mov dword [esp + 0x28], ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
mov dword [esp + 0x30], 1
call ebx
test eax, eax
jne 0x10009fd5
mov ecx, dword [esp + 0x14]
lea edx, [ecx + ecx + 2]
push edx
push 8
call ebp
push eax
call fcn.1000abd0
mov edi, eax
test edi, edi
je 0x10009fd5
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push edi
lea ecx, [esp + 0x20]
push ecx
push 0
push 0x10001aa4
push edx
call ebx
test eax, eax
jne 0x10009fc2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, 1
test eax, eax
je 0x10009fc6
mov ebx, dword [esp + 0x24]
push edi
push 0
call ebp
push eax
call fcn.1000b040
test ebx, ebx
jne 0x10009ff3
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push 0
push 0x10001aa4
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
push 0
call ebp
push eax
call fcn.1000b040
mov eax, dword [esp + 0x10]
pop esi
pop ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
add esp, 0x228
ret
Function at 0x1000ae50
Capabilities:
Delete registry key
Delete registry value

Disassembly:
sub esp, 0x210
push 1
push 0x10001a78
call fcn.10006620
add esp, 8
test eax, eax
je 0x1000af47
cmp dword [0x10001580], 0
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push edi
je 0x1000aee9
push 0x10001a14
push 0
push 0x10001a68
push 0x100019b8
lea eax, [esp + 0x1c]
push 0x100019a0
push eax
call esi
add esp, 0x18
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0xf023f
push 0
push 0
push 0
lea edx, [esp + 0x28]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], 0
call dword [fcn.10001824]
test eax, eax
jne 0x1000aee9
mov eax, dword [esp + 8]
push 0x10001a78
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x10001a78
push 0x5c
push 0x10001a68
push 0x100019b8
lea edx, [esp + 0x1c]
push 0x100019a0
push edx
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add esp, 0x18
lea eax, [esp + 0xc]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
push 0x10001a14
push 0x10001a78
push 0x10001904
lea ecx, [esp + 0x18]
push 0x100018c4
push ecx
call esi
add esp, 0x14
lea edx, [esp + 0xc]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call edi
pop edi
pop esi
add esp, 0x210
ret
Function at 0x1000c190
Capabilities:
Get token membership

Disassembly:
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [esp + 4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov word [esp + 0x3c], 0x500
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1000c1e4
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp + 8]
pop ebx
add esp, 0x10
ret
Function at 0x1000c7c7
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x214
push esi
push edi
mov edi, dword [esp + 0x224]
xor esi, esi
cmp edi, esi
je 0x1000c79d
mov eax, dword [esp + 0x220]
push eax
call fcn.1000ed50
add esp, 4
test eax, eax
je 0x1000c945
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
call fcn.10005f60
add esp, 0xc
cmp eax, 0x426
jne 0x1000c80a
push 2
push 0x1000222c
call fcn.1000d4d0
add esp, 8
test eax, eax
je 0x1000c945
push 0x1000222c
call fcn.10006f60
add esp, 4
test eax, eax
je 0x1000c945
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.10005f60
add esp, 0xc
cmp eax, esi
jne 0x1000c945
call fcn.1000f610
mov ecx, dword [esp + 0x10]
push ecx
call fcn.1000a100
add esp, 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, esi
je 0x1000c840
call fcn.1000e160
test eax, eax
je 0x1000c945
lea edx, [esp + 0x14]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp word [esp + eax*2 + 0x12], 0x5c
je 0x1000c86a
xor edx, edx
mov ecx, 0x5c
mov word [esp + eax*2 + 0x14], cx
mov word [esp + eax*2 + 0x16], dx
inc eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebp
push 0x100020d8
lea eax, [esp + eax*2 + 0x20]
push eax
call ebx
cmp edi, esi
jne 0x1000c8bd
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x1c]
push ecx
call ebp
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push 0x10002c8c
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
lea ecx, [esp + 0x1c]
push ecx
call ebp
push 0x10002c48
lea edx, [esp + 0x20]
push edx
call ebx
lea eax, [esp + 0x1c]
push eax
call fcn.100093b0
mov ebx, dword [esp + 0x14]
add esp, 4
cmp ebx, esi
jle 0x1000c91c
mov edi, dword [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea esp, [esp]
mov ecx, dword [edi + esi*4]
push ecx
call fcn.10006f60
mov edx, dword [edi + esi*4]
add esp, 4
push edx
push 0
call ebp
push eax
call fcn.1000b040
inc esi
cmp esi, ebx
jl 0x1000c8e0
push edi
push 0
call ebp
push eax
call fcn.1000b040
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [esp + 0x22c]
push 0x1000222c
call fcn.10006f60
push edi
call fcn.1000b0e0
push edi
call fcn.1000d370
add esp, 0xc
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x214
ret
pop edi
mov eax, esi
pop esi
add esp, 0x214
ret
Function at 0x1000d0d0
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x21c
push esi
mov esi, dword [esp + 0x224]
test esi, esi
jne 0x1000d0fb
mov eax, dword [0x100017b8]
push 0x10001dfc
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
pop esi
add esp, 0x21c
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [0x100017b8]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push 0x10001dfc
push ecx
mov dword [esp + 0x2c], 0x20a
mov dword [esp + 0x28], 1
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1000d14c
push esi
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1000d16b
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [0x100017b8]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push 0
push 0x10001dfc
push ecx
call edi
mov al, byte [esp + 0x230]
test al, al
je 0x1000d18d
cmp al, 0xfe
jbe 0x1000d184
mov dword [esp + 0xc], 0xfe
jmp 0x1000d195
movzx edx, al
mov dword [esp + 0xc], edx
jmp 0x1000d195
mov dword [esp + 0xc], 0xc
lea eax, [esp + 0x14]
push eax
mov eax, dword [0x100017b8]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push 0x10001df0
mov esi, 4
push eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
call ebx
test eax, eax
jne 0x1000d1d6
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esp + 0xc]
je 0x1000d1ec
mov eax, dword [0x100017b8]
push esi
lea edx, [esp + 0x10]
push edx
push esi
push 0
push 0x10001df0
push eax
call edi
pop edi
pop ebx
pop esi
add esp, 0x21c
ret
Function at 0x1000d370
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x68
push edi
push 0x1000
push 8
mov dword [esp + 0x14], 0x100024f8
mov dword [esp + 0x18], 0x10002408
mov dword [esp + 0x1c], 0x10002388
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call fcn.1000abd0
mov edi, eax
test edi, edi
je 0x1000d4b3
push 0x800
lea ecx, [edi + 2]
mov eax, 0x22
push ecx
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1000d4a4
inc eax
cmp word [edi + eax*2 - 2], 0x5c
je 0x1000d3db
mov edx, 0x5c
mov word [edi + eax*2], dx
inc eax
mov ecx, dword [esp + 0x70]
push esi
mov esi, ecx
neg esi
sbb esi, esi
and esi, 0xfffffffe
add esi, 2
neg ecx
sbb ecx, ecx
add ecx, 3
mov dword [esp + 0xc], ecx
cmp esi, ecx
jge 0x1000d4a3
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [edi + eax*2]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + esi*4 + 0x18]
mov edx, dword [esp + 0x10]
push ecx
push 0x10002364
push edx
call ebx
add esp, 0xc
push 0x44
lea eax, [esp + 0x38]
push eax
call sub.NTDLL.dll_RtlZeroMemory
push 0x10
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x68], 1
call sub.NTDLL.dll_RtlZeroMemory
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x38]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push edi
push 0
call ebp
test eax, eax
je 0x1000d496
mov ecx, dword [esp + 0x24]
push 0x7530
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x28]
push edx
call sub.NTDLL.dll_NtClose
mov eax, dword [esp + 0x24]
push eax
call sub.NTDLL.dll_NtClose
inc esi
cmp esi, dword [esp + 0x14]
jl 0x1000d414
pop ebp
pop ebx
pop esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call fcn.1000b040
pop edi
add esp, 0x68
ret

Function at 0x1000d4d0
Capabilities:
Modify service

Disassembly:
push ebx
push edi
push 1
push 0x1000220c
xor ebx, ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x1000d525
mov eax, dword [esp + 0xc]
push ebp
push esi
push 2
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x1000d520
mov ecx, dword [esp + 0x18]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ecx
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push esi
mov ebx, eax
call ebp
push edi
call ebp
pop esi
pop ebp
pop edi
mov eax, ebx
pop ebx
ret
Function at 0x1000d540
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push 0x3c
lea eax, [esp + 4]
push eax
call sub.NTDLL.dll_RtlZeroMemory
mov eax, dword [esp + 0x44]
mov dword [esp], 0x3c
mov dword [esp + 4], 0x800400
mov dword [esp + 0x1c], 0
test eax, eax
je 0x1000d572
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x48]
test eax, eax
je 0x1000d57e
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
test eax, eax
je 0x1000d58a
mov dword [esp + 0xc], eax
cmp dword [esp + 0x4c], 0
je 0x1000d59b
mov dword [esp + 0x1c], 1
jmp 0x1000d5a3
mov dword [esp + 4], 0x808400
push esi
mov esi, dword [esp + 0x54]
push edi
test esi, esi
je 0x1000d5b2
or dword [esp + 0xc], 0x40
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edi, eax
test edi, edi
je 0x1000d603
test esi, esi
je 0x1000d603
cmp esi, 0xffffffff
je 0x1000d5d4
imul esi, esi, 0x3e8
jmp 0x1000d5d7
or esi, 0xffffffff
mov edx, dword [esp + 0x40]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x1000d5f7
push eax
mov eax, dword [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 0x40]
push ecx
call sub.NTDLL.dll_NtClose
mov eax, edi
pop edi
pop esi
add esp, 0x3c
ret

Function at 0x1000d610
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor edx, edx
or eax, 0xffffffff
test esi, esi
je 0x1000d6bb
push edi
mov edi, dword [esp + 0x10]
movzx ecx, byte [edx + edi]
xor eax, ecx
mov ecx, eax
and ecx, 1
shr eax, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
and eax, 1
neg eax
and eax, 0xedb88320
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
shr eax, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
and eax, 1
neg eax
and eax, 0xedb88320
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
shr eax, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
and eax, 1
neg eax
and eax, 0xedb88320
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
shr eax, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
and eax, 1
neg eax
and eax, 0xedb88320
shr ecx, 1
inc edx
xor eax, ecx
cmp edx, esi
jb 0x1000d627
pop edi
not eax
pop esi
ret

Function at 0x1000d770
Capabilities:
Suspend thread

Disassembly:
push esi
mov esi, eax
push edi
xor edi, edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
call fcn.10005b40
test eax, eax
jne 0x1000d78d
lea eax, [edi + 9]
pop edi
pop esi
ret
cmp dword [esi], edi
je 0x1000d7e7
push ebx
xor ebx, ebx
cmp dword [esi + 8], ebx
jbe 0x1000d7e1
lea esp, [esp]
mov eax, dword [esi]
mov ecx, dword [eax + ebx*4]
push ecx
push 0
push 0x5a
call fcn.1000a920
mov edi, eax
test edi, edi
je 0x1000d7d5
push 0
push edi
call sub.NTDLL.dll_NtSuspendThread
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push edi
call fcn.10009a60
add esp, 8
push edi
call sub.NTDLL.dll_NtClose
inc ebx
cmp ebx, dword [esi + 8]
jb 0x1000d7a0
pop ebx
pop edi
xor eax, eax
pop esi
ret
pop ebx
mov eax, edi
pop edi
pop esi
ret
mov eax, edi
pop edi
pop esi
ret
Function at 0x1000f140
Capabilities:
Delete registry key

Disassembly:
mov eax, dword [0x100014f8]
sub esp, 0x210
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push edi
push eax
push reloc.WS2_32.dll_closesocket
call esi
mov ecx, dword [0x10001830]
push ecx
push closesocket
call esi
cmp dword [0x10001580], 0
mov edi, dword [esp + 0x21c]
je 0x1000f1c3
mov edx, dword [0x10001830]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call esi
push 0
call fcn.100074d0
mov eax, dword [0x10001580]
add esp, 4
test eax, eax
je 0x1000f1c3
cmp dword [0x10001508], 0
jne 0x1000f1a7
test edi, edi
je 0x1000f1c3
mov ecx, dword [0x100014cc]
push 1
push 0x10001d00
push 0x10001d00
push ecx
push eax
call fcn.100076c0
add esp, 0x14
cmp dword [0x10001810], 0
jne 0x1000f1d0
test edi, edi
je 0x1000f1d5
call fcn.1000ae50
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebx
push 0x800
push 8
call edi
push eax
call fcn.1000abd0
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
mov esi, eax
test esi, esi
je 0x1000f240
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], eax
call dword [sym.imp.NTDLL.dll_RtlRandom]
mov ecx, dword [0x100014ec]
push ecx
push 0xa
push eax
push ecx
push 0x10001c78
push esi
call ebx
push 0
push 0
push 0
push esi
push 0x10001c68
push 0
call fcn.1000d540
add esp, 0x30
push esi
push 0
call edi
push eax
call fcn.1000b040
push 0x4b
push 0x10001b8c
lea eax, [esp + 0x18]
push 0x10001b80
push eax
call ebx
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
pop ebx
test esi, esi
je 0x1000f279
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call sub.NTDLL.dll_NtClose
pop edi
pop esi
add esp, 0x210
ret

Function at 0x1000f3d0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
test edx, edx
je 0x1000f3e9
mov ecx, dword [esp + 4]
mov edi, edi
xor byte [eax + ecx], 0xab
inc eax
cmp eax, edx
jb 0x1000f3e0
ret
Function at 0x405dc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
xor esi, esi
lea eax, [edx + eax*2]
mov dword [ebp - 0x10], eax
movzx eax, byte [edx + 1]
cmp byte [edx], ch
lea edx, [edx + 2]
lea edi, [esi + eax]
jne 0x405e10
cmp edi, esi
jb 0x405e7b
cmp edi, dword [ebp + 0x10]
ja 0x405e8e
add esi, dword [ebp + 0xc]
nop word [eax + eax]
test eax, eax
je 0x405e12
dec eax
cmp byte [esi], cl
lea esi, [esi + 1]
jne 0x405e00
jmp 0x405e6f
ja 0x405e19
cmp edx, dword [ebp - 0x10]
mov esi, edi
jne 0x405dd5
mov edi, dword [ebp + 0x18]
movzx ecx, cx
mov al, 1
add edi, ebx
nop word cs:[eax + eax]
nop dword [eax]
movzx edx, byte [ebx]
lea esi, [ebx + 1]
test dl, dl
js 0x405e50
mov ebx, esi
sub ecx, edx
jns 0x405e67
jmp 0x405e71
cmp esi, edi
je 0x405ea2
movzx esi, byte [ebx + 1]
and edx, 0x7f
add ebx, 2
shl edx, 8
or edx, esi
sub ecx, edx
js 0x405e71
xor al, 1
cmp ebx, edi
jne 0x405e30
jmp 0x405e71
xor eax, eax
and al, 1
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
mov edx, edi
push 0x8f60d4
call fcn.00404a00
add esp, 4
ud2
mov edx, dword [ebp + 0x10]
mov ecx, edi
push 0x8f60d4
call fcn.00404310
add esp, 4
ud2
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_d5c2e9c342b358556da91d61ed4133f6f50fc0c3library_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
mov edx, 0x2b
push 0x8f60c4
call fcn.00404630
add esp, 4
ud2
Function at 0x410180
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [ebp + 0xc]
cmp eax, 3
je 0x410197
test eax, eax
jne 0x4102f8
mov edi, dword [0x9010c4]
test edi, edi
je 0x4102f8
mov dword [ebp - 0x10], 0
jmp 0x4101b7
mov edi, dword [edi + 8]
test edi, edi
je 0x4101e6
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x410337
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x4101b0
push 0
push esi
mov esi, eax
call sub.KERNEL32.dll_TlsSetValue
push esi
call ebx
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x4101b0
test byte [ebp - 0x10], 1
je 0x4102f8
mov edi, dword [0x9010c4]
test edi, edi
je 0x4102f8
mov dword [ebp - 0x10], 0
jmp 0x410217
mov edi, dword [edi + 8]
test edi, edi
je 0x410246
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x410337
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x410210
push 0
push esi
mov esi, eax
call sub.KERNEL32.dll_TlsSetValue
push esi
call ebx
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x410210
test byte [ebp - 0x10], 1
je 0x4102f8
mov edi, dword [0x9010c4]
test edi, edi
je 0x4102f8
mov dword [ebp - 0x10], 0
jmp 0x410277
mov edi, dword [edi + 8]
test edi, edi
je 0x4102a6
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x410337
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x410270
push 0
push esi
mov esi, eax
call sub.KERNEL32.dll_TlsSetValue
push esi
call ebx
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x410270
test byte [ebp - 0x10], 1
je 0x4102f8
mov edi, dword [0x9010c4]
test edi, edi
je 0x4102f8
mov dword [ebp - 0x10], 0
jmp 0x4102c7
mov edi, dword [edi + 8]
test edi, edi
je 0x4102f2
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x410337
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x4102c0
push 0
push esi
mov esi, eax
call sub.KERNEL32.dll_TlsSetValue
push esi
call ebx
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x4102c0
test byte [ebp - 0x10], 1
jne 0x410302
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov edi, dword [0x9010c4]
jmp 0x41030d
mov edi, dword [edi + 8]
test edi, edi
je 0x4102f8
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x410337
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x41030a
push 0
push esi
mov esi, eax
call sub.KERNEL32.dll_TlsSetValue
push esi
call ebx
add esp, 4
jmp 0x41030a
mov edx, 0x2b
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_d5c2e9c342b358556da91d61ed4133f6f50fc0c3library_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
push 0x8f8f48
call fcn.00404630
add esp, 4
ud2
Function at 0x410f00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x445030]
test eax, eax
je 0x410f2a
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jbe 0x410f3f
cmp dword [eax + 4], 0
mov edi, eax
je 0x410f3f
add edi, 8
jmp 0x410ffe
mov ecx, 0x445030
call fcn.00411290
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
ja 0x410f1a
mov eax, dword [0x445030]
test eax, eax
je 0x410fe3
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
je 0x410ffc
mov esi, eax
test eax, eax
jne 0x410fb2
movzx eax, byte [0x901060]
mov eax, dword [0x9010c0]
test eax, eax
jne 0x410f84
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x411010
mov dword [0x9010c0], eax
push 0x10
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x411010
mov dword [eax], 0x445030
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x445030]
test eax, eax
je 0x411004
dec eax
push esi
push eax
call sub.KERNEL32.dll_TlsSetValue
mov ecx, dword [esi + 0xc]
cmp dword [esi + 4], 0
lea edi, [esi + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
je 0x410ffe
test ecx, ecx
je 0x410ffe
lock dec dword [ecx]
jne 0x410ffe
call fcn.00411040
jmp 0x410ffe
mov ecx, 0x445030
call fcn.00411290
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jne 0x410f5c
xor edi, edi
mov eax, edi
pop esi
pop edi
pop ebp
ret
mov ecx, 0x445030
call fcn.00411290
jmp 0x410fab
mov ecx, 4
mov edx, 0x10
call fcn.00403710
ud2