joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140010658
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
mov rdx, rcx
lea r8, [0x14002a9a0]
mov rcx, qword [0x1400541c8]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x140010686
xor eax, eax
jmp 0x1400107bd
mov rcx, qword [0x1400541c8]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test eax, eax
je 0x14001067f
mov rcx, qword [0x1400541c8]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14001067f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14001067f
and qword [rsp + 0x58], 0
mov edx, edi
mov ecx, 2
mov esi, edi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x1400107b8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x1400107af
mov r8d, esi
mov rdx, rbx
mov rcx, rax
call fcn.140016fa0
and qword [rsp + 0x48], 0
lea r8, [rsp + 0x48]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x1400107a6
mov rsi, qword [rsp + 0x48]
lea ecx, [rax + 0x18]
call sub.gdiplus.dll_GdipAlloc
mov rbx, rax
test rax, rax
je 0x140010761
and qword [rsp + 0x50], 0
lea rax, [0x14002a970]
lea rdx, [rsp + 0x50]
mov qword [rbx], rax
mov rcx, rsi
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [rbx + 0x10], eax
mov rax, qword [rsp + 0x50]
mov qword [rbx + 8], rax
jmp 0x140010763
xor ebx, ebx
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x10]
test rbx, rbx
je 0x1400107a6
mov eax, dword [rbx + 0x10]
and dword [rbx + 0x10], 0
test eax, eax
jne 0x140010799
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x58]
mov r8d, 0xffffff
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x140010799
mov dword [rbx + 0x10], eax
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rax, qword [rsp + 0x58]
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret

Function at 0x140010bcc
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x140010ce4
Capabilities:
Delete file

Disassembly:
push rbx
mov eax, 0x1070
call fcn.1400157a0
sub rsp, rax
xor ebx, ebx
cmp word [0x1400551e2], bx
je 0x140010d8c
lea rcx, [0x1400551e2]
call fcn.140003e68
mov rdx, qword [str.RarSFX]
lea r8d, [rbx + 6]
mov rcx, rax
call fcn.140008c60
test eax, eax
jne 0x140010d8c
lea rcx, [0x1400541e0]
call fcn.140010bcc
mov r8d, 0x800
lea rdx, [0x1400551e2]
lea rcx, [rsp + 0x60]
call fcn.140007648
lea rcx, [rsp + 0x60]
call fcn.1400194e0
xor edx, edx
lea r8d, [rbx + 0x38]
lea rcx, [rsp + 0x20]
mov word [rsp + rax*2 + 0x62], bx
call fcn.140016490
lea eax, [rbx + 0x14]
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
add rsp, 0x1070
pop rbx
ret
Function at 0x140010df4
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x170
xor ebp, ebp
mov rdi, r8
cmp qword [0x1400386b0], rbp
mov rbx, rdx
mov rsi, rcx
jne 0x140010e5c
lea r9d, [rbp + 0x64]
mov ecx, 0x400
lea r8, [rax - 0xd8]
lea edx, [rbp + 0xf]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
movzx eax, word [rsp + 0xa0]
mov word [0x14006ad18], ax
lea rax, [0x14006ad18]
mov qword [0x1400386b0], rax
mov word [0x14006ad1a], bp
mov r8d, 0x32
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400074b0
lea r9, [0x140038698]
mov dword [rsp + 0x28], edi
lea r8, [rsp + 0x30]
mov word [rbx], bp
xor edx, edx
mov qword [rsp + 0x20], rbx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetNumberFormatW]
lea r11, [rsp + 0x170]
mov word [rbx + rdi*2 - 2], bp
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140011134
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1f40]
mov eax, 0x2040
call fcn.1400157a0
sub rsp, rax
xor esi, esi
mov rdi, rdx
cmp byte [0x1400561e8], sil
mov rbx, rcx
je 0x14001121b
mov r8d, 0x800
lea rdx, [rbp + 0xf40]
call fcn.1400129f8
lea rax, [rsp + 0x30]
xor r8d, r8d
lea r9d, [rsi + 1]
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareWinRAR_SFX
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001121b
mov rcx, qword [rsp + 0x30]
lea rax, [rbp + 0x1f70]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x1f78]
lea rax, [rsp + 0x40]
mov dword [rbp + 0x1f70], 0x1000
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0xf40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140011210
mov edx, dword [rbp + 0x1f70]
mov ecx, 0x7ff
shr edx, 1
mov r8, rdi
cmp edx, ecx
mov eax, edx
mov dword [rbp + 0x1f70], edx
lea rdx, [rsp + 0x40]
cmovb ecx, eax
mov word [rsp + rcx*2 + 0x40], si
mov rcx, rbx
call fcn.140007648
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x2060]
add rsp, 0x2040
pop rdi
pop rsi
pop rbp
ret
Function at 0x140011308
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
mov eax, 0x2020
call fcn.1400157a0
sub rsp, rax
xor r14d, r14d
mov rsi, r8
mov rbx, rcx
test r9, r9
je 0x14001133b
mov byte [r9], r14b
mov rcx, qword [rsp + 0x2050]
test rcx, rcx
je 0x14001134b
mov byte [rcx], r14b
test rbx, rbx
je 0x140011400
movzx eax, word [rbx]
test ax, ax
je 0x140011400
movsxd rbp, dword [rsp + 0x2058]
mov rdi, r14
mov r8d, r14d
add rbx, 2
cmp ax, 0x3d
jne 0x140011390
test rsi, rsi
je 0x14001139c
test rdi, rdi
jne 0x14001139c
test r9, r9
je 0x14001138b
mov byte [r9], 1
mov rdi, rdx
jmp 0x1400113ab
cmp ax, 0xd
je 0x1400113bd
cmp ax, 0xa
je 0x1400113c1
mov word [rdx], ax
add rdx, 2
lea eax, [rbp - 2]
cmp r8d, eax
jge 0x1400113b8
movzx eax, word [rbx]
inc r8d
test ax, ax
jne 0x14001136e
jmp 0x1400113c1
mov byte [rcx], 1
jmp 0x1400113c1
add rbx, 2
mov word [rdx], r14w
test rsi, rsi
je 0x1400113fb
mov word [rsi], r14w
test rdi, rdi
je 0x1400113fb
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r8, rbp
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140007648
mov word [rdi], r14w
mov rax, rbx
jmp 0x140011402
xor eax, eax
lea r11, [rsp + 0x2020]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

Function at 0x140011420
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov ebx, edx
lea rcx, [rsp + 0x58]
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderLocation]
xor ecx, ecx
test eax, eax
sete bl
test bl, bl
je 0x140011485
mov rcx, qword [rsp + 0x50]
mov rdx, rdi
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov rcx, qword [rsp + 0x58]
cmp eax, 1
mov rdx, qword [rsp + 0x50]
sete bl
mov rax, qword [rcx]
call qword [rax + 0x28]
jmp 0x140011488
mov word [rdi], cx
mov al, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140013f38
Capabilities:
Hide graphical window

Disassembly:
push rbx
sub rsp, 0x20
and dword [0x140054194], 0
mov edx, 1
mov rbx, rcx
mov byte [0x14005418c], 1
mov byte [0x14005418d], 1
call qword [sym.imp.USER32.dll_ShowWindow]
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 2]
call fcn.1400011d0
cmp qword [0x1400541a8], 0
jne 0x140013f83
cmp byte [0x140054192], 0
je 0x140013f8c
cmp dword [0x140054188], 0
jne 0x140013fa1
xor r9d, r9d
mov edx, 0x111
mov rcx, rbx
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_SendMessageW]
add rsp, 0x20
pop rbx
ret

Function at 0x14001404c
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1050
call fcn.1400157a0
sub rsp, rax
xor edi, edi
mov rbx, rcx
cmp byte [0x1400561e8], dil
je 0x14001411e
cmp word [0x1400561ea], di
je 0x14001411e
mov r8d, 0x800
lea rdx, [rsp + 0x50]
lea rcx, [0x1400561ea]
call fcn.1400129f8
lea rax, [rsp + 0x1068]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, str.SoftwareWinRAR_SFX
lea rax, [rsp + 0x1070]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14001411e
mov rcx, rbx
call fcn.1400194e0
lea r9d, [rdi + 1]
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea ecx, [rax*2 + 2]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x1070]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x1070]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x1060]
add rsp, 0x1050
pop rdi
ret

Function at 0x140014130
Capabilities:
Set environment variable

Disassembly:
push rbx
mov eax, 0x2020
call fcn.1400157a0
sub rsp, rax
mov rbx, rcx
mov rdx, rcx
lea rcx, str.sfxcmd
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14000730c
mov rbx, rax
test rax, rax
je 0x140014192
movzx ecx, word [rax]
jmp 0x140014179
add rbx, 2
movzx ecx, word [rbx]
call fcn.140007444
test al, al
jne 0x140014172
mov rdx, rbx
lea rcx, str.sfxpar
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x2020
pop rbx
ret
Function at 0x14001db3c
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x14001d910
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001d910
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001d910
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001d910
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001d910
cmp dword [rcx + 0x84], 0xe
jbe 0x14001d910
cmp dword [rcx + 0xf8], esi
je 0x14001d910
mov ecx, r14d
call fcn.14001da58
mov ecx, 2
call fcn.14002117c
nop
cmp byte [0x14006cfc0], 0
jne 0x14001d9da
mov r15d, 1
mov eax, r15d
xchg dword [0x14006cfb0], eax
test ebx, ebx
jne 0x14001d983
mov rdi, qword [0x140038748]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x14006cfb8]
cmp rcx, rax
je 0x14001d97a
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140015d7c]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x14006d0f8]
jmp 0x14001d98f
cmp ebx, r15d
jne 0x14001d995
lea rcx, [0x14006d110]
call fcn.14001e4cc
nop
test ebx, ebx
jne 0x14001d9ac
lea rdx, [0x140029528]
lea rcx, [0x140029508]
call fcn.14001e880
lea rdx, [0x140029538]
lea rcx, [0x140029530]
call fcn.14001e880
movzx eax, byte [0x14006cfc0]
test esi, esi
cmove eax, r15d
mov byte [0x14006cfc0], al
jmp 0x14001d9da
mov ecx, 2
call fcn.1400211d0
test esi, esi
jne 0x14001d9f1
mov ecx, r14d
call fcn.14001da0c
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x14001d8a0
Function at 0x100117e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r8, qword [rcx]
test r8, r8
je 0x1001183b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x1001183b
movzx eax, byte [r8 + rcx]
cmp eax, 0x49
je 0x10011856
cmp eax, 0x42
jne 0x1001183b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x10011906
cmp byte [r8 + r11], 0x5f
jne 0x10011906
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x1001196e
mov rcx, rsi
xor edx, edx
call fcn.1000cd30
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.1000cd30
test al, al
jne 0x10011a01
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x10011892
lea rdx, [0x104aaec3]
mov r8d, 1
call fcn.10007680
test al, al
jne 0x10011a01
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x1001184a
xor r14d, r14d
lea rbx, [0x104ab231]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x100118c4
cmp byte [rax + rcx], 0x45
je 0x10011a2a
sub r14, 1
jb 0x100118e9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x100118e9
mov r8d, 2
mov rdx, rbx
call fcn.10007680
test al, al
jne 0x10011a01
mov rcx, rsi
call fcn.1000e5d0
test al, al
jne 0x10011a01
mov rax, qword [rsi]
test rax, rax
jne 0x100118b0
jmp 0x1001184a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r9b, 1
cmp r11, r10
jae 0x100119c8
movzx edx, byte [r8 + r11]
cmp dl, 0x5f
je 0x10011962
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x1001194c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x1001193b
add dl, 0xa9
jmp 0x1001194a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x100119c8
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x100119c8
movzx edx, bl
add rax, rdx
jae 0x10011910
jmp 0x100119c8
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x100119c8
cmp rax, rcx
jae 0x100119c5
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x10011a09
cmp qword [rsi + 0x20], 0
je 0x10011a23
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.100117e0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x1001184c
mov r9b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x10011a18
mov eax, r9d
xor al, 1
movzx eax, al
lea r8, [rax + rax*8]
add r8, 0x10
lea rax, str.invalid_syntaxrecursion_limit_reached_for_______::closureshim_as__mut_const___dyn___unsafe_extern__
lea rdx, [0x104ab210]
test r9b, r9b
cmovne rdx, rax
call fcn.10007680
test al, al
je 0x10011a18
mov dil, 2
jmp 0x1001184a
mov dil, 1
xor r9d, r9d
mov rcx, qword [rsi + 0x20]
test rcx, rcx
jne 0x100119d3
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x1001184a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x1001184a
Function at 0x10014df0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x10014e75
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.KERNEL32.dll_InitOnceBeginInitialize
mov dword [rsp + 0x28], eax
cmp eax, 1
jne 0x10014eb6
cmp dword [rsp + 0x2c], 0
je 0x10014e9a
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x10014ed0
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x104b80d8]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x104b80d8], rsi
jne 0x10014e50
mov byte [0x104b80d0], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x10014eac
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x10014f1c
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x10014e9f
mov edi, dword [rsp + 0x28]
jmp 0x10014eac
mov edi, dword [rsi + 0x18]
jmp 0x10014eaa
mov edi, eax
mov ecx, dword [rsp + 0x28]
call sub.KERNEL32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.10015380
ud2
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, [0x104adc38]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call fcn.10006c40
ud2
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, [0x104adc38]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.100153d0
ud2
Function at 0x10014f60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov ecx, dword [0x10046090]
test ecx, ecx
je 0x10014f90
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x10014fa9
mov rsi, rax
cmp qword [rax + 8], 0
je 0x10014fa9
add rsi, 0x10
jmp 0x1001506d
lea rcx, [0x10046078]
call fcn.10014df0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x10014f7d
mov ecx, dword [0x10046090]
test ecx, ecx
je 0x10015090
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x100150ad
mov rdi, rax
test rax, rax
jne 0x1001503e
movzx eax, byte [0x104b8120]
mov rcx, qword [0x104b80c8]
test rcx, rcx
jne 0x10014ffb
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x100150cc
mov rcx, rax
mov qword [0x104b80c8], rax
mov r8d, 0x18
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x100150cc
mov rdi, rax
lea rax, [0x10046078]
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x10046090]
test ecx, ecx
je 0x100150b9
dec ecx
mov rdx, rdi
call sub.KERNEL32.dll_TlsSetValue
lea rsi, [rdi + 0x10]
mov rcx, qword [rdi + 0x10]
cmp qword [rdi + 8], 0
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], 0
je 0x1001506d
test rcx, rcx
je 0x1001506d
lock dec qword [rcx]
jne 0x1001506d
call fcn.10014d90
mov rdi, qword [rsi]
test rdi, rdi
jne 0x10015086
call fcn.10014400
mov rdi, rax
cmp qword [rsi], 0
jne 0x100150dd
mov qword [rsi], rdi
lock inc qword [rdi]
jg 0x100150af
ud2
lea rcx, [0x10046078]
call fcn.10014df0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x10014fc8
xor edi, edi
mov rax, rdi
add rsp, 0x58
pop rdi
pop rsi
ret
lea rcx, [0x10046078]
call fcn.10014df0
mov ecx, eax
jmp 0x10015036
mov ecx, 8
mov edx, 0x18
call fcn.10006450
ud2
lea rax, str.reentrant_init
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 1
lea rax, [0x104adc38]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
lea rdx, str._rustc_82e1608dfa6e0b5569232559e3d385fea5a93112librarycore_srccellonce.rs
lea rcx, [rsp + 0x28]
call fcn.10006c40
ud2
Function at 0x10016f00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x10046070]
test ecx, ecx
je 0x10016f2d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x10016f46
cmp qword [rax + 8], 0
je 0x10016f46
add rax, 0x10
add rsp, 0x20
pop rsi
ret
lea rcx, [0x10046058]
call fcn.10014df0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x10016f1c
mov ecx, dword [0x10046070]
test ecx, ecx
je 0x10016ff1
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1001700e
mov rsi, rax
test rax, rax
jne 0x10016fd3
movzx eax, byte [0x104b8120]
mov rcx, qword [0x104b80c8]
test rcx, rcx
jne 0x10016f98
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x10017026
mov rcx, rax
mov qword [0x104b80c8], rax
mov r8d, 0x20
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x10017026
mov rsi, rax
lea rax, [0x10046058]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x10046070]
test ecx, ecx
je 0x10017016
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov byte [rsi + 0x18], 0
add rsp, 0x20
pop rsi
ret
lea rcx, [0x10046058]
call fcn.10014df0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x10016f65
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x10046058]
call fcn.10014df0
mov ecx, eax
jmp 0x10016fcb
mov ecx, 8
mov edx, 0x20
call fcn.10006450
ud2
Function at 0x180001bc0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x180008040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
cmp edx, 1
jne 0x180001c57
mov dword [rsp + 0x30], 0x90909090
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov r8d, eax
lea ecx, [rdx + 0x38]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
je 0x180001c4e
mov r9d, 4
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x30]
mov edx, 0x401000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor r9d, r9d
mov qword [rsp + 0x28], 0
lea r8, [0x180001b30]
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180002b00
add rsp, 0x40
pop rbx
ret
Function at 0x2fc4d6340
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d7420
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d6d42
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f9108]
test eax, eax
je 0x2fc4d6dda
lea rax, [0x2fc4f90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f9110]
mov qword [rbp - 8], rax
jmp 0x2fc4d6dbe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d6db2
cmp qword [rbp - 0x10], 0
je 0x2fc4d6db2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d6d78
lea rax, [0x2fc4f90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d6ddb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d6ee0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d6f08
mov eax, 0
jmp 0x2fc4d6f56
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d6f31
mov eax, 0
jmp 0x2fc4d6f56
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d6f51
mov eax, 0
jmp 0x2fc4d6f56
mov eax, 1
add rsp, 0x20
pop rbp
ret