joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454740
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, ecx
mov eax, dword [0x591014]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x20]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea ebx, [esp + 0x10]
push 0x93
push str....._base_files_file_win.cc
push str.WriteAtCurrentPos
push ebx
call fcn.004a26d0
add esp, 0x10
mov ecx, edi
push 0
push ebx
call fcn.004a9540
cmp dword [ebp + 0xc], 0
js 0x454807
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
call fcn.004af300
test al, al
jne 0x45480c
lea ebx, [esp + 0xc]
mov dword [ebx], 0xffffffff
push 0
push ebx
push dword [ebp + 0xc]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [ebx]
lea ecx, [esp + 0x10]
call fcn.004af3a0
lea ecx, [esp + 0x20]
call fcn.004a95a0
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.004c66e3
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
xor esi, esi
dec esi
jmp 0x4547e7
lea ecx, [esp + 0x10]
push 0
push dword [ebp + 0xc]
push esi
push str.File::WriteAtCurrentPos
call fcn.00513e90
jmp 0x4547bc

Function at 0x454830
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov dword [esp + 4], ecx
mov eax, dword [0x591014]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
lea ebx, [esp + 0x20]
movdqa xmmword [ebx + 0x30], xmm0
movdqa xmmword [ebx + 0x20], xmm0
movdqa xmmword [ebx + 0x10], xmm0
movdqa xmmword [ebx], xmm0
lea edi, [esp + 0x10]
push 0xa8
push str....._base_files_file_win.cc
push str.GetLength
push edi
call fcn.004a26d0
add esp, 0x10
xor esi, esi
mov ecx, ebx
push esi
push edi
call fcn.004a9540
mov dword [edi + 4], 0xffffffff
mov dword [edi], esi
call fcn.004af300
test al, al
jne 0x4548ed
xor eax, eax
dec eax
lea ebx, [esp + 8]
mov dword [ebx + 4], eax
mov dword [ebx], eax
push ebx
mov eax, dword [esp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
sbb esi, esi
mov edi, dword [ebx + 4]
or edi, esi
or esi, dword [ebx]
lea ecx, [esp + 0x10]
call fcn.004af3a0
lea ecx, [esp + 0x20]
call fcn.004a95a0
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.004c66e3
mov eax, esi
mov edx, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0x10]
push esi
push esi
push dword [esp + 0xc]
push str.File::GetLength
call fcn.00513e90
jmp 0x45489f
Function at 0x454910
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x90
mov dword [esp + 0xc], ecx
mov eax, dword [0x591014]
xor eax, ebp
mov dword [esp + 0x88], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x40]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea esi, [esp + 0x30]
push 0xb5
push str....._base_files_file_win.cc
push str.SetLength
push esi
call fcn.004a26d0
add esp, 0x10
xor ebx, ebx
mov ecx, edi
push ebx
push esi
call fcn.004a9540
mov dword [esi + 4], 0xffffffff
mov dword [esi], ebx
call fcn.004af300
test al, al
jne 0x454a72
xor eax, eax
dec eax
lea ecx, [esp + 0x28]
mov dword [ecx + 4], eax
mov dword [ecx], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov esi, dword [esp + 0xc]
mov eax, dword [esi]
sub esp, 0x14
movsd xmm0, qword [esp + 0x34]
movsd qword [esp + 4], xmm0
mov dword [esp + 0xc], ecx
mov dword [esp], eax
mov dword [esp + 0x10], 1
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x454a46
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
sub esp, 0x14
movsd xmm0, qword [esp + 0x2c]
movsd qword [esp + 4], xmm0
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x454a46
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor ebx, ebx
test eax, eax
je 0x454a46
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov eax, dword [esi]
sub esp, 0x14
movsd xmm0, qword [esp + 0x24]
movsd qword [esp + 4], xmm0
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
setne bl
lea ecx, [esp + 0x30]
call fcn.004af3a0
lea ecx, [esp + 0x40]
call fcn.004a95a0
mov ecx, dword [esp + 0x88]
xor ecx, ebp
call fcn.004c66e3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
lea ecx, [esp + 0x30]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esp + 0x14]
push str.File::SetLength
call fcn.00513e90
jmp 0x454989
Function at 0x454e00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov dword [esp + 8], ecx
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x591014]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x20]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea esi, [esp + 0x10]
push 0x16f
push str....._base_files_file_win.cc
push str.DoInitialize
push esi
call fcn.004a26d0
add esp, 0x10
mov ecx, edi
push 0
push esi
call fcn.004a9540
mov eax, ebx
and eax, 1
neg eax
and eax, 3
xor ecx, ecx
inc ecx
test bl, 2
cmove ecx, eax
test bl, 4
mov edx, 4
cmovne ecx, edx
test bl, 8
mov esi, 2
cmove esi, ecx
test bl, 0x10
mov eax, 5
cmove eax, esi
test eax, eax
je 0x455007
mov ecx, ebx
and ecx, 0x40
shl ecx, 0x18
test bl, 0x80
cmove edx, ecx
mov ecx, ebx
rol ecx, 0x1a
mov esi, ebx
shl esi, 0xb
and esi, 0x20000000
mov edi, ebx
shr edi, 4
and edi, 0x10000
and ecx, 0x80000100
or ecx, esi
or ecx, edi
or ecx, edx
mov esi, ebx
shr esi, 8
and esi, 3
mov edx, ebx
shr edx, 0xd
and edx, 4
or edx, esi
and ebx, 0x400
mov dword [esp + 0xc], ebx
shl ebx, 0x14
mov esi, dword [ebp + 0xc]
shr esi, 3
and esi, 0x100
or esi, ebx
mov ebx, dword [ebp + 0xc]
mov edi, ebx
shr edi, 0xb
and edi, 2
or edi, esi
mov esi, ebx
shl esi, 0xd
and esi, 0x4000000
or esi, edi
mov edi, ebx
shl edi, 8
and edi, 0xa000000
or edi, esi
mov esi, dword [ebp + 8]
xor edx, 3
cmp byte [esi + 0xb], 0
jns 0x454f32
mov esi, dword [esi]
xor ebx, ebx
push ebx
push edi
push eax
push ebx
push edx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov esi, dword [esp + 8]
cmp dword [esi], eax
je 0x454fbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
inc ecx
cmp ecx, 2
jae 0x454fe9
mov ecx, edi
inc ecx
cmp ecx, 2
mov ebx, dword [ebp + 0xc]
jb 0x454f73
mov dword [esi], edi
mov edi, eax
call fcn.004a2700
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [esi]
inc edi
cmp edi, 2
jb 0x454fc4
mov eax, dword [esp + 0xc]
shr eax, 0xa
mov dword [esi + 0x14], 0
mov byte [esi + 0x19], al
test bl, 4
jne 0x454fd8
test bl, 0xa
je 0x454fa1
mov byte [esi + 0x18], 1
lea ecx, [esp + 0x20]
call fcn.004a95a0
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.004c66e3
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov ebx, dword [ebp + 0xc]
jmp 0x454f7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00454cc0
add esp, 4
mov dword [esi + 0x14], eax
jmp 0x454fa1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [esi + 0x18]
jmp 0x454fa1
mov ebx, eax
call fcn.004a2700
push dword [esi]
call fcn.004ab080
mov eax, ebx
add esp, 4
mov dword [esi], 0
jmp 0x454f5d
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 8]
mov dword [eax + 0x14], 0xffffffff
jmp 0x454fa1
Function at 0x455020
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ebx, dword [ebp + 8]
cmp dword [ecx], ebx
je 0x455055
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x45505c
lea eax, [ebx + 1]
cmp eax, 2
jb 0x45504e
mov dword [esi], ebx
call fcn.004a2700
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.004a2700
push dword [esi]
call fcn.004ab080
add esp, 4
mov dword [esi], 0
jmp 0x45503f
Function at 0x4553a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov edi, edx
mov ebx, ecx
mov eax, dword [0x591014]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ecx, ecx
jne 0x4553d7
mov eax, dword [0x592c30]
cmp eax, 0xffffffff
je 0x45546a
mov ebx, 0x100000
test eax, eax
jne 0x4553d7
mov ebx, 0x80000
push 0x10
call fcn.004c5c68
add esp, 4
mov esi, eax
mov dword [eax], 0
mov eax, edi
shr eax, 0xe
mov ecx, edi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x59af58]
bt ecx, eax
jb 0x45545f
mov eax, edi
shr eax, 0x15
mov byte [eax + 0x5a2f58], 1
mov dword [esi], edi
mov edi, dword [ebp + 8]
test edi, edi
setne byte [esi + 4]
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0xc], eax
xor eax, eax
push eax
push 0x10000
push esi
push 0x455840
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x45548e
test edi, edi
je 0x4554ec
mov dword [edi], eax
test eax, eax
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c66e3
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
push edi
call fcn.004a3890
add esp, 4
jmp 0x45540b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x592c30
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x455560
mov eax, dword [0x592c30]
jmp 0x4553c9
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x4554aa
mov edi, eax
cmp eax, 0x5af
je 0x4554aa
cmp edi, 0xe
jne 0x4554fc
push ebx
call fcn.00515ce0
add esp, 4
test esi, esi
mov eax, dword [ebp - 0x20]
je 0x455446
mov eax, dword [esi]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x59af58]
bt edx, ecx
jae 0x4554db
push eax
call fcn.004a39b0
add esp, 4
push esi
call fcn.004c5c98
add esp, 4
mov eax, dword [ebp - 0x20]
jmp 0x455446
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x455446
mov eax, dword [0x598cbc]
mov ecx, dword [0x5954dc]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x45556f
lea ebx, [ebp - 0x1c]
push edi
push ebx
call fcn.0044f900
add esp, 8
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x455536
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
jmp 0x455539
and eax, 0x7f
push eax
push ebx
push dword [0x598cb8]
call fcn.004afd50
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x4554b3
push dword [ebp - 0x1c]
call fcn.004c5c98
jmp 0x4554b0
mov dword [0x592c30], 0
jmp 0x4553d2
push 0x598cbc
call fcn.004c5d07
add esp, 4
cmp dword [0x598cbc], 0xffffffff
jne 0x455519
push 0x20
push str.create_thread_last_error
call fcn.004638b0
add esp, 8
mov dword [0x598cb8], eax
push 0x598cbc
call fcn.004c5d7d
add esp, 4
jmp 0x455519
Function at 0x455a80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x591014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, 4
lea edx, [ebp - 0x14]
mov dword [edx], eax
lea esi, [ebp - 0x18]
mov dword [esi], eax
xor eax, eax
lea edi, [ebp - 0x1c]
mov dword [edi], eax
mov ebx, dword [ebp + 8]
push esi
push edi
push edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x455af3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffffd
mov esi, 0x3f4
cmp eax, 1
ja 0x455add
cmp dword [ebp - 0x18], 4
jne 0x455add
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c66e3
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov esi, eax
jmp 0x455add

Function at 0x455b00
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x100c
call fcn.004c7010
mov esi, ecx
mov eax, dword [0x591014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ebx, 0x800
lea edi, [ebp - 0x810]
push ebx
push 0xff
push edi
call fcn.004c9370
add esp, 0xc
lea eax, [ebp - 0x1014]
mov dword [eax], 1
lea ecx, [ebp - 0x1018]
mov dword [ecx], ebx
push ecx
push edi
push eax
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x455b8f
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1014]
cmp eax, 1
jne 0x455b93
mov ecx, esi
push edi
call fcn.004457a0
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c66e3
mov eax, esi
add esp, 0x100c
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov esi, eax
jmp 0x455b76
cmp eax, 2
jne 0x455bdc
lea ebx, [ebp - 0x1010]
push 0x800
push 0xff
push ebx
call fcn.004c9370
add esp, 0xc
push 0x400
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1018], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x455bd5
mov ecx, esi
push ebx
jmp 0x455b6f
mov esi, 0xea
jmp 0x455b76
mov esi, 0x3f4
jmp 0x455b76
Function at 0x45d380
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045d0b0
Function at 0x45d8a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x45d8b8
cmp dword [ebp + 0x10], 0
jne 0x45d8b4
call fcn.00471470
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.0045d390

Function at 0x45ff00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, ecx
mov eax, dword [0x591014]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x10]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
mov ebx, esp
push 0x1b
push str....._base_filesmemory_mapped_file_win.cc
push str.MapImageToMemory
push ebx
call fcn.004a26d0
add esp, 0x10
mov ecx, edi
push 0
push ebx
call fcn.004a9540
mov ecx, esi
call fcn.00454700
test al, al
je 0x460085
mov ecx, esi
call fcn.00454710
sub esp, 0x18
movdqa xmm0, xmmword [0x57fb40]
movdqu xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
cmp dword [esi + 0x24], eax
je 0x45ffc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi + 0x24]
inc eax
cmp eax, 2
jae 0x460069
mov eax, edi
inc eax
cmp eax, 2
jb 0x45ffb9
mov dword [esi + 0x24], edi
call fcn.004a2700
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [esi + 0x24]
lea eax, [edi + 1]
cmp eax, 2
jb 0x460085
sub esp, 0x14
movdqa xmm0, xmmword [0x57fb50]
movdqu xmmword [esp + 4], xmm0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov eax, dword [esi + 0x1c]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x59af58]
bt edx, ecx
jb 0x460089
mov eax, edi
shr eax, 0xe
mov ecx, edi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x59af58]
bt ecx, eax
jb 0x460097
mov eax, edi
shr eax, 0x15
mov byte [eax + 0x5a2f58], 1
mov dword [esi + 0x1c], edi
test edi, edi
je 0x460085
mov ecx, esp
mov dword [ecx], fcn.00506fc0
mov dword [ecx + 4], edi
call fcn.00471d40
mov eax, dword [eax + 0x50]
mov dword [esi + 0x20], eax
mov bl, 1
lea ecx, [esp + 0x10]
call fcn.004a95a0
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.004c66e3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.004a2700
push dword [esi + 0x24]
call fcn.004ab080
add esp, 4
mov dword [esi + 0x24], 0
jmp 0x45ffa9
xor ebx, ebx
jmp 0x460049
push eax
call fcn.004a39b0
add esp, 4
jmp 0x460008
push edi
call fcn.004a3890
add esp, 4
jmp 0x46002a
Function at 0x465200
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov eax, dword [0x591014]
xor eax, ebp
mov dword [esp + 0x28], eax
cmp dword [ebp + 8], 0
je 0x4653d5
cmp dword [0x593cf0], 0xe69e32f3
jne 0x4653d8
mov ecx, 0x2e8
mov esi, dword [ebp + 8]
add ecx, dword [esi + 0xc]
mov byte [esp + 0xf], 0xff
movzx eax, byte [esi + 2]
push eax
mov dword [esp + 8], ecx
push ecx
call fcn.004a3760
add esp, 8
movzx ebx, ax
shl ebx, 5
lea edi, [esi + ebx]
add edi, 0x48
add esi, 0x40
push esi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x46539d
mov dword [esp + 8], esi
mov eax, dword [edi]
mov esi, dword [eax]
test esi, esi
je 0x465342
mov byte [esp + 0xf], 0
mov ecx, dword [esi]
test ecx, ecx
je 0x465393
mov edi, dword [ebp + 8]
lea edx, [edi + 0x48]
mov ebx, dword [edx + ebx + 0xc]
bswap ecx
mov edx, ecx
xor edx, esi
cmp edx, 0x1fffff
ja 0x4653a9
mov edx, ecx
and edx, 0x1fc000
je 0x4653a9
prefetcht0 byte [ecx]
mov dword [eax], ecx
mov ecx, dword [eax + 0xc]
lea edx, [ecx + 2]
and edx, 0x3ffe
and ecx, 0xffffc001
or ecx, edx
mov dword [eax + 0xc], ecx
mov eax, dword [eax + 8]
mov ecx, dword [edi + 0x117c]
add ecx, dword [eax + 0xc]
mov eax, dword [edi + 0x1180]
mov dword [edi + 0x117c], ecx
cmp eax, ecx
cmova ecx, eax
mov dword [edi + 0x1180], ecx
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ecx, esi
push edi
call fcn.004b48e0
push esi
push dword [0x5a6134]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x5954dc]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov dword [eax + 0xa0], esi
mov ecx, dword [esp + 0x28]
xor ecx, ebp
call fcn.004c66e3
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 0xf]
mov ecx, edi
push eax
push 0x4000
push dword [esp + 0xc]
push 2
mov edi, dword [ebp + 8]
push edi
call fcn.004b5700
test eax, eax
je 0x4653db
mov esi, eax
mov ecx, eax
and ecx, 0xffe00000
mov edx, eax
shr edx, 9
and edx, 0xfe0
lea eax, [edx + ecx]
movzx ecx, byte [edx + ecx + 0x101e]
and ecx, 0x3f
shl ecx, 5
sub eax, ecx
add eax, 0x1000
jmp 0x4652d6
xor ecx, ecx
mov edi, dword [ebp + 8]
jmp 0x4652bd
mov ecx, esi
call fcn.004b55a0
jmp 0x465271
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x10]
movdqa xmmword [edi], xmm0
mov ecx, edi
push 0
push dword [esi]
push str.first
call fcn.0050c1c0
push edi
call fcn.0042a720
add esp, 4
mov ecx, ebx
call fcn.00515650
int3
int3
xor esi, esi
jmp 0x4652f9
Function at 0x46a6d0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5a76c0]
mov ecx, dword [0x5954dc]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x46a701
movzx eax, word [0x5a769c]
cmp eax, 9
jne 0x46a74c
xor eax, eax
inc eax
pop ebp
ret
push 0x5a76c0
call fcn.004c5d07
add esp, 4
cmp dword [0x5a76c0], 0xffffffff
jne 0x46a6f0
xorps xmm0, xmm0
movups xmmword [0x5a76ac], xmm0
movups xmmword [0x5a769c], xmm0
mov dword [0x5a76bc], 0
push 0x5a769c
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x5a76c0
call fcn.004c5d7d
add esp, 4
jmp 0x46a6f0
test eax, eax
je 0x46a6ff
cmp eax, 6
jne 0x46a75c
mov eax, 2
jmp 0x46a6ff
cmp eax, 0xc
jne 0x46a768
mov eax, 3
jmp 0x46a6ff
mov eax, 4
jmp 0x46a6ff
Function at 0x473ae0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [ebp + 0xc]
cmp eax, 3
je 0x473af7
test eax, eax
je 0x473af7
pop esi
pop edi
pop ebp
ret 0xc
test eax, eax
jne 0x473b05
mov ecx, dword [0x5a77f4]
test ecx, ecx
jne 0x473b41
cmp dword [0x5a77ec], 0
je 0x473af1
mov esi, dword [0x5a77f0]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test edi, edi
jne 0x473b4b
test esi, esi
je 0x473af1
mov ecx, dword [0x5a77ec]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
jmp 0x473af1
call dword [section..00cfg]
call ecx
jmp 0x473b05
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x473b29

Function at 0x476e40
Capabilities:
Get 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 ecx, dword [0x591014]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
cmp eax, 3
je 0x476e70
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c66e3
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
lea eax, [ebp - 0x14]
mov dword [eax], 0x476f70
push 0
push eax
push 0x476e20
push 0x5a7824
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x476f6b
cmp dword [0x5a7828], 0
jne 0x476e5c
push dword [0x5a782c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x476e5c
mov esi, eax
mov eax, 0x5a7830
push eax
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov edi, dword [0x5a7834]
mov ebx, dword [0x5a7838]
mov eax, dword [0x5a783c]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x5a7840]
mov dword [ebp - 0x20], eax
mov eax, dword [0x5a7844]
mov dword [ebp - 0x24], eax
mov eax, 0x5a7830
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test edi, edi
je 0x476f04
mov eax, dword [esi]
mov dword [ebp - 0x18], eax
mov ecx, edi
call dword [section..00cfg]
push dword [ebp - 0x18]
call edi
add esp, 4
test ebx, ebx
je 0x476f19
mov edi, dword [esi + 4]
mov ecx, ebx
call dword [section..00cfg]
push edi
call ebx
add esp, 4
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x476f2f
mov edi, dword [esi + 8]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
mov ecx, dword [ebp - 0x20]
test ecx, ecx
mov ebx, dword [ebp - 0x24]
je 0x476f48
mov edi, dword [esi + 0xc]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
test ebx, ebx
je 0x476f5d
mov edi, dword [esi + 0x10]
mov ecx, ebx
call dword [section..00cfg]
push edi
call ebx
add esp, 4
push esi
call fcn.004b8420
add esp, 4
jmp 0x476e5c
call fcn.004da990
push ebp
mov ebp, esp
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x5a782c], eax
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
mov dword [0x5a7828], ecx
pop ebp
ret
Function at 0x476f90
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, 8
mov eax, dword [0x591014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
mov dword [eax], 0x476f70
push 0
push eax
push 0x476e20
push 0x5a7824
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x477063
mov esi, dword [ebp + 0xc]
cmp dword [0x5a7828], 0
jne 0x477071
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push dword [0x5a782c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
jne 0x477026
push 0x14
call fcn.004b83f0
add esp, 4
test eax, eax
je 0x477071
mov edi, eax
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
push eax
push dword [0x5a782c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x477068
mov ebx, dword [ebp + 8]
mov esi, 0x5a7830
push esi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov eax, dword [ebp + 0x10]
mov dword [ebx*4 + 0x5a7834], eax
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [ebp + 0xc]
mov dword [edi + ebx*4], eax
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c66e3
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004da990
push edi
call fcn.004b8420
add esp, 4
mov ecx, dword [ebp + 0x10]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
xor esi, esi
jmp 0x47704f