joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47eed0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xb0
mov eax, dword [0x540010]
xor eax, ebp
mov dword [esp + 0xa8], eax
cmp dword [ebp + 8], 0
je 0x47f119
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x30]
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea esi, [esp + 0x70]
push 0x2ee
push str.file_util_win.cc
push str.GetOrCreateSecureSystemTemp
push esi
call fcn.00492120
add esp, 0x10
mov ecx, edi
push 0
push esi
call fcn.00486fa0
xor esi, esi
dec esi
lea edi, [esp + 0x24]
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov ecx, edi
call fcn.00493db0
push edi
push 0x65
call fcn.00480b30
add esp, 8
test al, al
je 0x47f000
lea ebx, [esp + 0x18]
mov dword [ebx], esi
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
lea ecx, [esp + 0x24]
push 0xa
push str.SystemTemp
push ebx
call fcn.00494d30
lea edi, [esp + 0x70]
pcmpeqd xmm0, xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea eax, [esp + 0x60]
push 0x226
push str.file_util_win.cc
push str.PathExists
push eax
call fcn.00492120
add esp, 0x10
mov ecx, edi
push 0
lea eax, [esp + 0x64]
push eax
call fcn.00486fa0
cmp byte [ebx + 0xb], 0
jns 0x47efc3
mov ebx, dword [esp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov ecx, edi
call fcn.00487010
cmp ebx, esi
je 0x47eff7
lea edi, [esp + 0x18]
mov ecx, edi
mov edx, 2
push 0x40000000
call fcn.0047e300
add esp, 4
test al, al
jne 0x47f0d0
lea ecx, [esp + 0x18]
call fcn.00493ef0
lea edi, [esp + 0x18]
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov ecx, edi
call fcn.00493db0
push edi
push 3
call fcn.00480b30
add esp, 8
test al, al
je 0x47f0e4
lea ebx, [esp + 0xc]
mov dword [ebx], esi
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
lea ecx, [esp + 0x18]
push 4
push str.Temp
push ebx
call fcn.00494d30
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x70]
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea eax, [esp + 0x60]
push 0x226
push str.file_util_win.cc
push str.PathExists
push eax
call fcn.00492120
add esp, 0x10
mov ecx, edi
push 0
lea eax, [esp + 0x64]
push eax
call fcn.00486fa0
cmp byte [ebx + 0xb], 0
jns 0x47f08d
mov ebx, dword [esp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov ecx, edi
call fcn.00487010
cmp ebx, esi
je 0x47f0bb
lea eax, [esp + 0xc]
mov ecx, dword [ebp + 8]
push eax
call fcn.00493f10
mov bl, 1
lea ecx, [esp + 0xc]
call fcn.00493ef0
jmp 0x47f0e6
lea eax, [esp + 0xc]
push eax
call fcn.00481700
add esp, 4
test al, al
jne 0x47f0a1
xor ebx, ebx
jmp 0x47f0b0
mov ecx, dword [ebp + 8]
push edi
call fcn.00493f10
mov ecx, edi
call fcn.00493ef0
mov bl, 1
jmp 0x47f0ef
xor ebx, ebx
lea ecx, [esp + 0x18]
call fcn.00493ef0
lea ecx, [esp + 0x24]
call fcn.00493ef0
lea ecx, [esp + 0x30]
call fcn.00487010
mov ecx, dword [esp + 0xa8]
xor ecx, ebp
call fcn.004e0685
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
int3
Function at 0x47f920
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov edi, dword [ebp + 0xc]
mov eax, dword [0x540010]
xor eax, ebp
mov dword [esp + 0x48], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x10]
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
mov ebx, esp
push 0x4aa
push str.file_util_win.cc
push 0x52f61d
push ebx
call fcn.00492120
add esp, 0x10
xor eax, eax
mov ecx, esi
push eax
push ebx
call fcn.00486fa0
cmp byte [edi + 0xb], 0
jns 0x47f97d
mov edi, dword [edi]
sub esp, 0x1c
xor ebx, ebx
mov dword [esp + 0x18], ebx
movaps xmm0, xmmword [0x5254a0]
movups xmmword [esp + 4], xmm0
mov dword [esp], edi
mov dword [esp + 0x14], 0x8000000
call dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
je 0x47f9c4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp esi, 0xffffffff
je 0x47fa07
call fcn.00492150
mov ebx, esi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp + 8]
lea edi, [ebx + 1]
cmp edi, 1
ja 0x47fa0b
xor eax, eax
mov byte [esi], al
mov byte [esi + 8], al
cmp edi, 2
jb 0x47f9e9
call fcn.00492150
push ebx
call fcn.0047b600
add esp, 4
lea ecx, [esp + 0x10]
call fcn.00487010
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.004e0685
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
jmp 0x47f9bd
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
test ecx, ecx
js 0x47fa47
mov dword [esp], 0xffffffff
push 0
lea edx, [esp + 4]
push edx
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47fa40
mov eax, dword [esp]
mov dword [esi], eax
mov dword [esi + 4], 0
mov al, 1
jmp 0x47f9d3
mov byte [esi], 0
xor eax, eax
jmp 0x47f9d3
int3
Function at 0x47fa50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov edi, dword [ebp + 8]
mov eax, dword [0x540010]
xor eax, ebp
mov dword [esp + 0x48], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x10]
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
mov ebx, esp
push 0x4c0
push str.file_util_win.cc
push 0x52f626
push ebx
call fcn.00492120
add esp, 0x10
xor eax, eax
mov ecx, esi
push eax
push ebx
call fcn.00486fa0
cmp byte [edi + 0xb], 0
jns 0x47faad
mov edi, dword [edi]
sub esp, 0x1c
xor ebx, ebx
mov dword [esp + 0x18], ebx
movaps xmm0, xmmword [0x5229a0]
movups xmmword [esp + 4], xmm0
mov dword [esp], edi
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
je 0x47faf8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp esi, 0xffffffff
je 0x47fb6a
call fcn.00492150
mov ebx, esi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
dec esi
cmp dword [ebp + 0x10], 0
js 0x47fb36
lea eax, [ebx + 1]
cmp eax, 2
jb 0x47fb36
mov eax, dword [ebp + 0xc]
xor edi, edi
dec edi
mov dword [esp], edi
push 0
lea ecx, [esp + 4]
push ecx
mov esi, dword [ebp + 0x10]
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp]
cmp ecx, esi
cmove edi, ecx
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, edi
lea eax, [ebx + 1]
cmp eax, 2
jb 0x47fb4c
call fcn.00492150
push ebx
call fcn.0047b600
add esp, 4
lea ecx, [esp + 0x10]
call fcn.00487010
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.004e0685
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
jmp 0x47faf1

Function at 0x47fb70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x260
mov eax, dword [0x540010]
xor eax, ebp
mov dword [esp + 0x258], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x20]
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea ebx, [esp + 0x50]
push 0x4f9
push str.file_util_win.cc
push 0x52f630
push ebx
call fcn.00492120
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.00486fa0
lea esi, [esp + 0x52]
push 0x206
push 0xff
push esi
call fcn.004e3a90
add esp, 0xc
mov word [esi - 2], 0
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
dec esi
cmp esi, 0x103
ja 0x47fc36
push ebx
call fcn.004fbc1b
add esp, 4
lea edi, [esp + 8]
mov ecx, edi
push eax
push ebx
call fcn.00493e00
lea ebx, [esp + 0x14]
mov ecx, edi
push ebx
call fcn.00495a50
mov ecx, dword [ebp + 8]
push ebx
call fcn.00493f70
mov ecx, ebx
call fcn.00493ef0
mov ecx, edi
call fcn.00493ef0
cmp esi, 0x104
setb bl
lea ecx, [esp + 0x20]
call fcn.00487010
mov ecx, dword [esp + 0x258]
xor ecx, ebp
call fcn.004e0685
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x47fc80
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov dword [esp], edx
mov esi, ecx
mov eax, dword [0x540010]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
lea ebx, [esp + 0x20]
movdqa xmmword [ebx + 0x20], xmm0
movdqa xmmword [ebx + 0x10], xmm0
movdqa xmmword [ebx], xmm0
lea edi, [esp + 0x10]
push 0x9b
push str.file_util_win.cc
push str.DoCopyFile
push edi
call fcn.00492120
add esp, 0x10
mov ecx, ebx
push 0
mov ebx, edi
push edi
mov edi, esi
call fcn.00486fa0
mov ecx, esi
call fcn.00495ab0
test al, al
jne 0x47fd04
mov esi, dword [esp]
mov ecx, esi
call fcn.00495ab0
test al, al
jne 0x47fd04
cmp byte [edi + 0xb], 0
jns 0x47fd31
cmp dword [edi + 4], 0x103
jbe 0x47fd31
xor ebx, ebx
lea ecx, [esp + 0x20]
call fcn.00487010
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.004e0685
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
lea ecx, [esp + 4]
call fcn.004ac080
jmp 0x47fd06
cmp byte [esi + 0xb], 0
jns 0x47fd40
cmp dword [esi + 4], 0x103
ja 0x47fd04
xor eax, eax
dec eax
lea esi, [esp + 4]
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi], eax
push 0xa8
push str.file_util_win.cc
push str.DoCopyFile
push ebx
call fcn.00492120
add esp, 0x10
mov ecx, esi
mov esi, dword [esp]
push 0x545a08
push ebx
call fcn.004abf70
cmp byte [esi + 0xb], 0
jns 0x47fd7f
mov esi, dword [esi]
movzx eax, byte [ebp + 8]
cmp byte [edi + 0xb], 0
jns 0x47fd8b
mov edi, dword [edi]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x47fd24
mov edi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
je 0x47fd26
mov ecx, eax
and ecx, 1
je 0x47fd26
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov bl, 1
jmp 0x47fd26
Function at 0x480130
Capabilities:
Check if file exists
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4f8
mov ebx, edx
mov edi, ecx
mov eax, dword [0x540010]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x2a4]
push 0x294
push 0xff
push esi
call fcn.004e3a90
add esp, 0xc
mov ecx, esi
mov dword [ebp - 0x504], ebx
push ebx
push 3
push 0
push edi
call fcn.004ad7d0
xor eax, eax
dec eax
lea edi, [ebp - 0x500]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, esi
push edi
call fcn.004ad950
movzx eax, byte [edi + 0xb]
test al, al
jns 0x48019d
mov eax, dword [ebp - 0x4fc]
test eax, eax
je 0x480307
xor edi, edi
lea ebx, [ebp - 0x4f4]
jmp 0x480253
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor esi, esi
cmp ecx, 2
je 0x48020d
mov esi, eax
jmp 0x48020d
mov ecx, ebx
call fcn.004ad7c0
test al, al
jne 0x4801de
mov eax, dword [ebp - 0x4f4]
jmp 0x480286
mov ecx, ebx
call fcn.004ad7c0
xor esi, esi
test al, al
jne 0x48020d
cmp byte [ebp - 0x4f5], 0
lea eax, [ebp - 0x500]
jns 0x480200
mov eax, dword [ebp - 0x500]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
test eax, eax
je 0x4801b2
test edi, edi
cmovne esi, edi
mov ecx, ebx
call fcn.00411780
lea ecx, [ebp - 0x2a4]
push ebx
call fcn.004ad950
lea ecx, [ebp - 0x500]
push ebx
call fcn.00493f70
mov ecx, ebx
call fcn.00493ef0
movzx eax, byte [ebp - 0x4f5]
test al, al
jns 0x480249
mov eax, dword [ebp - 0x4fc]
mov edi, esi
test eax, eax
je 0x480309
push 0x250
push 0xff
push ebx
call fcn.004e3a90
add esp, 0xc
lea ecx, [ebp - 0x2a4]
push ebx
call fcn.004ad910
mov eax, dword [ebp - 0x4f4]
test al, 1
je 0x4802a6
cmp byte [ebp + 8], 0
je 0x4801c8
cmp byte [ebp - 0x4f5], 0
lea ecx, [ebp - 0x500]
jns 0x48029b
mov ecx, dword [ebp - 0x500]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, ebx
call fcn.004ad7c0
test al, al
je 0x4801eb
xor esi, esi
cmp byte [ebp + 8], 0
je 0x48020d
lea ecx, [ebp - 0x500]
mov edx, dword [ebp - 0x504]
push 1
call fcn.00480130
add esp, 4
mov esi, eax
test eax, eax
jne 0x48020d
cmp byte [ebp - 0x4f5], 0
lea eax, [ebp - 0x500]
jns 0x4802f6
mov eax, dword [ebp - 0x500]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, 0
jmp 0x480209
xor esi, esi
lea ecx, [ebp - 0x500]
call fcn.00493ef0
lea ecx, [ebp - 0x2a4]
call fcn.004ad8a0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e0685
mov eax, esi
add esp, 0x4f8
pop esi
pop edi
pop ebx
pop ebp
Function at 0x481350
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov eax, dword [0x540010]
xor eax, ebp
mov dword [esp + 0x98], eax
xor ebx, ebx
test ecx, ecx
je 0x481526
mov dword [esp], edx
push ebx
push ebx
push ecx
mov ebx, ecx
call fcn.004f9142
add esp, 0xc
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x60]
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea edi, [esp + 0x20]
push 0x48
push str.file_util.cc
push str.ReadStreamToSpanWithMaxSize
push edi
call fcn.00492120
add esp, 0x10
mov ecx, esi
xor esi, esi
push esi
push edi
call fcn.00486fa0
mov dword [edi + 0x30], esi
pxor xmm0, xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
mov dword [esp + 4], ebx
push ebx
call fcn.004f29f6
add esp, 4
push eax
call fcn.004f2a4a
add esp, 4
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x4814cd
mov eax, dword [esp + 0x44]
xor ecx, ecx
mov edx, eax
neg edx
sbb ecx, dword [esp + 0x40]
mov edi, 0xffff
cmovl edi, eax
mov eax, dword [esp]
cmp edi, eax
cmovae edi, eax
inc edi
xor eax, eax
dec eax
lea esi, [esp + 0x18]
mov dword [esi], eax
mov dword [esi + 4], eax
lea ecx, [ebp + 8]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
lea ebx, [esp + 0x10]
mov dword [esp + 8], eax
mov dword [ebx], eax
call dword [0x53a380]
mov eax, dword [ebx]
push edi
push eax
push esi
mov dword [esp + 0x18], ecx
call ecx
add esp, 0xc
xor ebx, ebx
mov eax, dword [esi]
add eax, ebx
push dword [esp + 4]
push edi
push 1
push eax
call fcn.004f8e52
add esp, 0x10
test eax, eax
je 0x4814e0
mov esi, eax
mov eax, dword [esp]
sub eax, ebx
cmp eax, esi
jb 0x4814d7
add esi, ebx
push dword [esp + 4]
call fcn.004f87c8
add esp, 4
test eax, eax
jne 0x4814de
test ebx, ebx
mov eax, 0x10000
cmove edi, eax
lea ebx, [esi + edi]
mov eax, dword [esp + 8]
mov dword [esp + 0x94], eax
mov ecx, dword [esp + 0xc]
call dword [0x53a380]
mov eax, dword [esp + 0x94]
push ebx
push eax
lea eax, [esp + 0x18]
push eax
call ecx
add esp, 0xc
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
mov ebx, esi
jmp 0x481451
mov edi, 0xffff
jmp 0x481412
xor esi, esi
mov ebx, dword [esp]
jmp 0x4814f3
mov ebx, esi
push dword [esp + 4]
call fcn.004f87f4
add esp, 4
test eax, eax
sete al
mov esi, eax
mov eax, dword [esp + 8]
mov dword [esp + 0x94], eax
mov ecx, dword [esp + 0xc]
call dword [0x53a380]
mov eax, dword [esp + 0x94]
push ebx
push eax
lea eax, [esp + 0x18]
push eax
call ecx
add esp, 0xc
lea ecx, [esp + 0x60]
call fcn.00487010
mov ebx, esi
mov ecx, dword [esp + 0x98]
xor ecx, ebp
call fcn.004e0685
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x485a10
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov dword [ebp - 0x10], ecx
mov eax, dword [0x542500]
cmp eax, 0xffffffff
je 0x485a31
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x485a36
call fcn.00485b90
mov eax, dword [0x546a40]
mov ecx, dword [0x543ad4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x485b36
mov edi, dword [0x546a3c]
mov ecx, edi
shr ecx, 0xe
mov esi, edi
shr esi, 0x13
mov eax, dword [esi*4 + 0x548b80]
mov dword [ebp - 0x14], ecx
bt eax, ecx
jae 0x485ac1
push edi
call fcn.004a0180
add esp, 4
test edi, edi
je 0x485b7b
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x485a99
mov ecx, edi
call fcn.0047c180
mov ecx, dword [0x545a34]
inc ecx
xor edx, edx
lea eax, [ecx + edx]
movzx ebx, al
mov eax, ebx
shl eax, 4
cmp dword [eax + 0x545a38], 0
je 0x485acf
inc edx
cmp edx, 0x100
jne 0x485aa2
jmp 0x485b02
mov eax, edi
shr eax, 0x15
mov byte [eax + 0x550b80], 1
jmp 0x485a7f
lea eax, [eax + 0x545a38]
mov dword [eax], 1
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov ecx, dword [0x546a38]
inc ecx
mov dword [0x546a38], ecx
mov dword [eax + 0xc], ecx
mov dword [0x545a34], ebx
mov ecx, dword [ebp - 0x10]
mov dword [ecx], ebx
mov eax, dword [eax + 8]
mov dword [ecx + 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [esi*4 + 0x548b80]
mov ecx, dword [ebp - 0x14]
bt eax, ecx
jae 0x485b21
push edi
call fcn.004a02a0
add esp, 4
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0x100
jae 0x485b7e
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 4
push 0x546a40
call fcn.004dfba7
add esp, 4
cmp dword [0x546a40], 0xffffffff
jne 0x485a57
push 4
call fcn.004dfb05
add esp, 4
mov edi, eax
mov ecx, eax
call fcn.0047c170
mov dword [0x546a3c], edi
push 0x546a40
call fcn.004dfc1d
add esp, 4
jmp 0x485a57
int3
int3
Function at 0x485b90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x808
mov eax, dword [0x540010]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x814], 0xffffffff
mov ecx, dword [0x542500]
mov dword [ebp - 0x814], ecx
cmp ecx, 0xffffffff
je 0x485c3d
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x485cac
mov edi, 0x800
lea ebx, [ebp - 0x810]
push edi
push 0
push ebx
call fcn.004e3a90
add esp, 0xc
lea eax, [ebp - 0x80d]
push eax
push dword [ebp - 0x814]
call fcn.004b10d0
add esp, 8
push edi
call fcn.004dfb63
add esp, 4
mov esi, eax
push edi
push ebx
push eax
call fcn.004e3510
add esp, 0xc
mov eax, esi
or eax, 3
push eax
push dword [ebp - 0x814]
call fcn.004b10d0
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e0685
mov eax, esi
add esp, 0x808
pop esi
pop edi
pop ebx
pop ebp
ret
lea esi, [ebp - 0x814]
push esi
call fcn.004b10b0
add esp, 4
test al, al
je 0x485caf
mov ecx, dword [ebp - 0x814]
cmp ecx, 0xffffffff
jne 0x485c81
push esi
call fcn.004b10b0
add esp, 4
test al, al
je 0x485cb2
cmp dword [ebp - 0x814], 0xffffffff
je 0x485cb2
push 0xffffffffffffffff
call fcn.00511200
add esp, 4
mov ecx, dword [ebp - 0x814]
xor eax, eax
dec eax
lock cmpxchg dword [0x542500], ecx
je 0x485bc1
push ecx
call fcn.00511200
add esp, 4
mov ecx, dword [0x542500]
mov dword [ebp - 0x814], ecx
jmp 0x485bc1
int3
int3
int3
Function at 0x496f40
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov ebx, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [0x540010]
xor edx, ebp
mov dword [ebp - 0x10], edx
lea esi, [ebp - 0x20]
push 3
push ecx
push eax
push esi
call fcn.0047c210
add esp, 0x10
mov eax, dword [esi + 4]
test eax, eax
je 0x4970a5
mov esi, dword [ebp - 0x20]
mov dword [ebx], esi
mov dword [ebx + 4], eax
xor eax, eax
mov dword [ebp - 0x14], eax
push 0x800
mov dword [ebp - 0x24], 0
push eax
push 0x52fec4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
mov dword [ebp - 0x30], eax
je 0x496fc4
push 0x52ff14
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x496fd2
mov ecx, eax
call dword [0x53a380]
lea eax, [ebp - 0x14]
push eax
push esi
call ecx
jmp 0x496fcf
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x24], eax
mov esi, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov edi, 0
mov dword [ebp - 0x28], 0
test esi, esi
je 0x497044
mov dword [ebp - 0x2c], ebx
cmp esi, 0x15555556
jae 0x4970cf
shl esi, 2
lea edi, [esi + esi*2]
push edi
call fcn.004dfb05
add esp, 4
mov dword [ebp - 0x20], eax
mov ecx, eax
add ecx, edi
mov dword [ebp - 0x18], ecx
xor ebx, ebx
mov dword [ebp - 0x28], eax
mov edi, eax
test edi, edi
je 0x4970c0
mov ecx, edi
mov eax, dword [ebp - 0x24]
push dword [eax + ebx]
call fcn.0041e1b0
add edi, 0xc
add ebx, 4
cmp esi, ebx
jne 0x49701f
mov dword [ebp - 0x1c], edi
mov ebx, dword [ebp - 0x2c]
mov ecx, ebx
lea eax, [ebp - 0x20]
push eax
call fcn.00496d70
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x49706d
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x4970a5
cmp edi, esi
je 0x49709c
add edi, 0xfffffff4
jmp 0x497090
push dword [edi]
call fcn.004dfb35
add esp, 4
lea eax, [edi - 0xc]
cmp edi, esi
mov edi, eax
je 0x49709c
test edi, edi
je 0x4970b9
cmp byte [edi + 0xb], 0
jns 0x497087
jmp 0x49707d
push esi
call fcn.004dfb35
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e0685
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret 8
push str....._third_partylibc_srcinclude__memoryconstruct_at.h:66:_assertion___loc___nullptr_failed:_null_pointer_given_to_destroy_at_n
jmp 0x4970c5
push str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
push 0x521354
call fcn.0044d640
lea ecx, [ebp - 0x20]
call fcn.00416ce0
int3
Function at 0x49a580
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov ebx, edx
mov esi, ecx
mov eax, dword [0x540010]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x49a5a1
mov eax, dword [esi]
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
xor eax, eax
test edi, edi
je 0x49a681
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
js 0x49a694
push edi
call fcn.004dfb05
add esp, 4
mov ebx, eax
add eax, edi
mov dword [ebp - 0x2c], eax
xor eax, eax
mov ecx, ebx
add ecx, eax
je 0x49a685
mov byte [ecx], 0
inc eax
cmp edi, eax
jne 0x49a5d9
cmp byte [esi + 0xb], 0
jns 0x49a5f3
mov esi, dword [esi]
push ebx
push edi
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
xor ecx, ecx
test eax, eax
je 0x49a652
lea esi, [ebp - 0x20]
mov dword [esi], ecx
lea eax, [ebp - 0x24]
mov dword [eax], ecx
push esi
push eax
push 0x5253a0
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
setne al
cmp dword [esi], 0x34
setae cl
and cl, al
cmp cl, 1
jne 0x49a652
mov eax, dword [ebp - 0x24]
mov esi, ecx
mov ecx, dword [eax + 0x30]
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x30], ecx
mov ecx, esi
movups xmm0, xmmword [eax + 0x20]
movups xmmword [edx + 0x20], xmm0
movups xmm0, xmmword [eax]
movups xmm1, xmmword [eax + 0x10]
movups xmmword [edx + 0x10], xmm1
movups xmmword [edx], xmm0
test ebx, ebx
je 0x49a66b
mov eax, dword [ebp - 0x2c]
dec eax
cmp edi, eax
ja 0x49a69c
mov esi, ecx
push ebx
call fcn.004dfb35
add esp, 4
mov ecx, esi
mov ebx, ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e0685
mov eax, ebx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
jmp 0x49a66d
push str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
push 0x521354
call fcn.0044d640
lea ecx, [ebp - 0x1c]
call fcn.00416ce0
push str....._third_partylibc_srcinclude__memoryconstruct_at.h:66:_assertion___loc___nullptr_failed:_null_pointer_given_to_destroy_at_n
jmp 0x49a68a