joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46d2d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fba8b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x150
mov eax, dword [0x57b070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x150], edi
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x158], ecx
lea ecx, [ebp - 0x13c]
mov dword [ebp - method.t_reg.virtual_0], vtable.t_reg.0
call fcn.00461c60
push 8
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x140], reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x138], 7
call fcn.00462700
cmp byte [ebp - 0x20], 0
lea eax, [ebp - 0x130]
movups xmm0, xmmword [str.MACHINE]
cmove eax, dword [ebp - 0x134]
movups xmmword [eax + 4], xmm0
push 1
sub esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x148]
push esi
push edi
call fcn.00470450
test al, al
jne 0x46d3a4
mov ecx, edi
jmp 0x46d4b1
mov edi, dword [ebp - 0x158]
push 0x105
lea ecx, [edi + 8]
mov dword [edi + 0x120], 0x105
call fcn.00462700
cmp byte [edi + 0x11c], 0
lea eax, [edi + 0xc]
jne 0x46d3d0
mov eax, dword [edi + 8]
lea ecx, [ebp - 0x15c]
mov dword [ebp - 0x154], 0
push ecx
add eax, 4
mov dword [ebp - 0x15c], 0x208
push eax
lea eax, [ebp - 0x154]
push eax
push 0
push 0
push dword [ebp - 0x144]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x46d454
cmp byte [ebp - 0x20], 0
lea edi, [ebp - 0x130]
mov ecx, dword [ebp - 0x150]
cmove edi, dword [ebp - 0x134]
push eax
call fcn.00464450
mov ecx, eax
call fcn.004645e0
mov ecx, dword [ebp - 0x150]
call fcn.00464450
push 0x55b640
mov esi, eax
push 0x558df8
push esi
call fcn.004623d0
add esp, 0xc
lea ecx, [edi + 4]
push ecx
jmp 0x46d492
cmp dword [ebp - 0x154], 1
je 0x46d4d2
cmp byte [ebp - 0x20], 0
lea edi, [ebp - 0x130]
mov ecx, dword [ebp - 0x150]
cmove edi, dword [ebp - 0x134]
call fcn.00464450
push 0x55b650
mov esi, eax
push 0x558df8
push esi
call fcn.004623d0
add esp, 0xc
lea edx, [edi + 4]
push edx
push 0x558df8
push esi
call fcn.004623d0
mov ecx, dword [ebp - 0x158]
add esp, 0xc
call fcn.00461e50
mov ecx, dword [ebp - 0x150]
call fcn.00464450
push 0x55fbf8
push 0x558df8
push eax
call fcn.004623d0
add esp, 0xc
mov byte [ebp - 0x149], 0
jmp 0x46d4e0
mov ecx, edi
call fcn.00462190
mov byte [ebp - 0x149], 1
mov eax, dword [ebp - 0x144]
mov dword [ebp - method.t_reg.virtual_0], vtable.t_reg.0
test eax, eax
je 0x46d4fb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x20], 0
mov dword [ebp - 0x144], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x46d52e
mov eax, dword [ebp - 0x134]
lea ecx, [ebp - 0x130]
cmp eax, ecx
je 0x46d52e
push eax
call fcn.004ac7ec
add esp, 4
mov al, byte [ebp - 0x149]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a35cb
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x46e1b0
Capabilities:
Create thread
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fbc56
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x57b070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x144], esi
mov dword [ebp - 0x148], esi
call fcn.00461c60
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x138]
mov dword [esi + 0x124], 0
call fcn.00461c60
mov byte [ebp - 0x13c], 0
mov dword [ebp - 0x140], 0
lea edx, [ebp - 0x138]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x140]
call fcn.0046aa60
test al, al
je 0x46e337
cmp byte [ebp - 0x1c], 0
lea eax, [ebp - 0x12c]
mov ecx, esi
cmove eax, dword [ebp - 0x130]
add eax, 4
push eax
call fcn.00461ed0
push 0x5528b0
push 0x558df8
push esi
call fcn.004623d0
add esp, 0xc
push 0x55fb94
push 0x558df8
push esi
call fcn.004623d0
add esp, 0xc
push 0x234
call fcn.004a35dc
add esp, 4
mov dword [ebp - 0x144], eax
push 0x55fc40
push ecx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0046df70
cmp byte [0x5838c8], 0
mov dword [esi + 0x128], eax
jne 0x46e2bc
cmp byte [0x5858d0], 0
je 0x46e2bc
mov al, 1
jmp 0x46e2be
xor al, al
test al, al
je 0x46e337
cmp dword [0x57e6c4], 0
je 0x46e321
push 0xc
call fcn.004b12a2
mov edi, eax
add esp, 4
mov dword [edi], 0x46e870
mov dword [edi + 4], esi
cmp dword [0x57e6c4], 0
jne 0x46e2ed
xor eax, eax
jmp 0x46e2f9
push dword [0x57e6cc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [edi + 8], eax
test eax, eax
je 0x46e314
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push edi
push 0
push 0x461990
jmp 0x46e329
push edi
call fcn.004ac7ec
add esp, 4
xor eax, eax
jmp 0x46e331
push esi
push 0
push 0x46e870
call fcn.004b3213
add esp, 0xc
mov dword [esi + 0x124], eax
lea ecx, [ebp - 0x140]
call fcn.004643f0
cmp byte [ebp - 0x1c], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x46e36b
mov eax, dword [ebp - 0x130]
lea ecx, [ebp - 0x12c]
cmp eax, ecx
je 0x46e36b
push eax
call fcn.004ac7ec
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a35cb
mov esp, ebp
pop ebp
ret
Function at 0x470580
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, ecx
mov eax, dword [ebx]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push edi
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x470683
test edi, edi
je 0x47062a
cmp word [edi], 0
je 0x47062a
cmp byte [esi + 0x128], 0
lea ebx, [esi + 0x18]
jne 0x4705d5
mov ebx, dword [esi + 0x14]
mov ecx, dword [ebp + 8]
push eax
call fcn.00464450
mov ecx, eax
call fcn.004645e0
mov ecx, dword [ebp + 8]
call fcn.00464450
push 0x55b640
mov esi, eax
push 0x558df8
push esi
call fcn.004623d0
add esp, 0xc
lea ecx, [ebx + 4]
push ecx
push 0x558df8
push esi
call fcn.004623d0
add esp, 0xc
push 0x5528b0
push 0x558df8
push esi
call fcn.004623d0
add esp, 0xc
push edi
jmp 0x47066a
cmp byte [esi + 0x128], 0
lea edi, [esi + 0x18]
jne 0x470639
mov edi, dword [esi + 0x14]
mov ecx, dword [ebp + 8]
push eax
call fcn.00464450
mov ecx, eax
call fcn.004645e0
mov ecx, dword [ebp + 8]
call fcn.00464450
push 0x55b640
mov esi, eax
push 0x558df8
push esi
call fcn.004623d0
add esp, 0xc
lea ecx, [edi + 4]
push ecx
push 0x558df8
push esi
call fcn.004623d0
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x18]
je 0x4706e8
test edi, edi
je 0x4706c7
cmp word [edi], 0
je 0x4706c7
cmp byte [esi + 0x128], 0
lea ebx, [esi + 0x18]
jne 0x4706a4
mov ebx, dword [esi + 0x14]
mov ecx, dword [ebp + 8]
push 0
call fcn.00464450
mov ecx, eax
call fcn.004645e0
mov ecx, dword [ebp + 8]
call fcn.00464450
push 0x55b650
jmp 0x4705f2
cmp byte [esi + 0x128], 0
lea edi, [esi + 0x18]
jne 0x4706d6
mov edi, dword [esi + 0x14]
mov ecx, dword [ebp + 8]
call fcn.00464450
push 0x55b650
jmp 0x470656
mov eax, dword [ebp + 0x10]
pop edi
mov dword [ebx], eax
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x471500
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc021
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x57b070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [edi + 4], 0
lea eax, [edi + 0x20]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], fcn.004b12a2
mov dword [edi + 0x18], fcn.004b2dab
mov dword [edi + 0x1c], fcn.004ac7ec
mov dword [eax + 4], fcn.004b12a2
mov dword [eax + 8], fcn.004b2dab
mov dword [eax + 0xc], fcn.004ac7ec
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0x1fff8
mov dword [eax], vtable.t_heap.0
mov dword [edi + 0x3c], fcn.004b12a2
mov dword [edi + 0x40], fcn.004b2dab
mov dword [edi + 0x44], fcn.004ac7ec
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0x8000
mov dword [edi + 0x38], vtable.t_heap.0
mov dword [edi + 0x50], 0
mov byte [edi + 0x54], 1
mov dword [ebp - 4], 0
lea ecx, [edi + 0x58]
mov dword [edi], vtable.t_configGameFile.0
mov dword [ebp - 0x10], ecx
mov byte [ecx + 4], 0
mov dword [ecx + 8], str.setting
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], fcn.004b12a2
mov dword [ecx + 0x20], fcn.004b2dab
mov dword [ecx + 0x24], fcn.004ac7ec
mov dword [ecx + 0x28], eax
mov dword [ecx], vtable.t_configGameFile::t_setting.0
mov byte [ecx + 0x30], 0
mov dword [ecx + 0x34], 0x55ff60
mov dword [ecx + 0x38], 0
mov dword [ecx + 0x3c], 0
mov dword [ecx + 0x2c], vtable.n_config::t_int.0
mov byte [ecx + 0x44], 0
mov dword [ecx + 0x48], 0x558ae8
mov dword [ecx + 0x4c], 0x552c50
mov dword [ecx + 0x50], 0x552c50
mov dword [ecx + 0x40], vtable.n_config::t_str.0
mov dword [ecx + 0x54], eax
lea esi, [edi + 0xb0]
mov dword [ebp - 0x10], esi
mov byte [esi + 4], 0
mov dword [esi + 8], str.item
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0
lea eax, [edi + 0x84]
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], fcn.004b12a2
mov dword [esi + 0x24], fcn.004b2dab
mov dword [esi + 0x28], fcn.004ac7ec
mov dword [esi], vtable.n_config::t_arraySection_class_t_configGameFile::t_item_.0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], eax
mov byte [ebp - 4], 4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ecx
lea ecx, [edi + 4]
push eax
call fcn.00430f80
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
lea ecx, [edi + 4]
call fcn.00430f80
xor esi, esi
cmp dword [edi + 8], esi
jle 0x4716f2
mov eax, dword [edi + 4]
mov ecx, dword [eax + esi*4]
mov eax, dword [ecx]
call dword [eax + 0x20]
inc esi
cmp esi, dword [edi + 8]
jl 0x4716e1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x472e70
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x57b070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x60]
mov edx, dword [ebp + 0xc]
test eax, eax
push esi
push dword [ebp + 0x10]
mov esi, 0x58ed0c
mov dword [ebp - 0x60], 0x67452301
cmovne esi, eax
mov dword [ebp - 0x5c], 0xefcdab89
mov dword [ebp - 0x58], 0x98badcfe
mov dword [ebp - 0x54], 0x10325476
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 8], 0
call fcn.00477e40
add esp, 4
lea edx, [ebp - 0x60]
mov ecx, esi
call fcn.00478100
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004a35cb
mov esp, ebp
pop ebp
ret

Function at 0x472ef0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov ecx, dword [ebp + 8]
mov esi, edi
cmp ecx, 3
jl 0x472f87
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
mov dword [ebp + 8], ecx
nop dword [eax]
movzx eax, byte [ebx]
shr eax, 2
movzx eax, byte [eax + 0x54e570]
mov byte [esi], al
movzx ecx, byte [ebx]
movzx eax, byte [ebx + 1]
and ecx, 3
shr eax, 4
shl ecx, 4
or ecx, eax
movzx eax, byte [ecx + 0x54e570]
mov byte [esi + 1], al
movzx ecx, byte [ebx + 1]
movzx eax, byte [ebx + 2]
and ecx, 0xf
shr eax, 6
shl ecx, 2
or ecx, eax
movzx eax, byte [ecx + 0x54e570]
mov byte [esi + 2], al
movzx eax, byte [ebx + 2]
add ebx, 3
and eax, 0x3f
movzx eax, byte [eax + 0x54e570]
mov byte [esi + 3], al
add esi, 4
sub edx, 1
jne 0x472f20
mov ecx, dword [ebp + 8]
test ecx, ecx
jle 0x472fdb
movzx eax, byte [ebx]
shr eax, 2
mov al, byte [eax + 0x54e570]
mov byte [esi], al
mov dl, byte [ebx]
and dl, 3
shl dl, 4
cmp ecx, 1
jle 0x472fae
mov al, byte [ebx + 1]
shr al, 4
or dl, al
movzx eax, dl
mov al, byte [eax + 0x54e570]
mov byte [esi + 1], al
cmp ecx, 2
jge 0x472fc3
mov al, 0x3d
jmp 0x472fd1
movzx eax, byte [ebx + 1]
and eax, 0xf
mov al, byte [eax*4 + 0x54e570]
mov byte [esi + 2], al
mov byte [esi + 3], 0x3d
add esi, 4
mov byte [esi], 0
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x472fe1
sub edi, ecx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4730d0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc0eb
mov eax, dword fs:[0]
push eax
sub esp, 0x360
mov eax, dword [0x57b070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x36c]
call fcn.0046cdb0
mov dword [ebp - method.t_fileWrite.virtual_0], vtable.t_fileWrite.0
mov dword [ebp - 0x18], vtable.t_fileWrite.1.0
mov dword [ebp - 4], 0
lea eax, [edi + 0xc]
cmp byte [edi + 0x11c], 0
jne 0x473139
mov eax, dword [edi + 8]
push 0x80
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 1
push edi
push ebx
lea ecx, [ebp - 0x36c]
call fcn.0046cf10
test al, al
je 0x4731b1
push 2
push 0x558da4
push ebx
lea ecx, [ebp - 0x18]
call fcn.00473a70
test al, al
je 0x4731b1
push dword [esi + 0xc]
lea ecx, [ebp - 0x18]
push dword [esi + 4]
push ebx
call fcn.00473a70
test al, al
je 0x4731b1
lea ecx, [ebp - 0x36c]
call fcn.0046d1d0
push dword [esi + 4]
call fcn.004ac7ec
add esp, 4
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov bl, 1
mov dword [esi + 0xc], 0
jmp 0x4731b3
xor bl, bl
lea ecx, [ebp - 0x36c]
mov dword [ebp - method.t_fileWrite.virtual_0], vtable.t_fileWrite.0
mov dword [ebp - 0x18], vtable.t_byteStreamWrite.0
call fcn.0046ce50
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a35cb
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4733d0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc12b
mov eax, dword fs:[0]
push eax
sub esp, 0x36c
mov eax, dword [0x57b070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test eax, eax
je 0x473429
push eax
call fcn.004ac7ec
add esp, 4
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
push ecx
lea ecx, [ebp - 0x370]
call fcn.0046cdb0
mov dword [ebp - method.t_fileRead.virtual_0], vtable.t_fileRead.0
mov dword [ebp - 0x1c], 0x5602b0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0
push esi
push ebx
lea ecx, [ebp - 0x370]
mov dword [ebp - 4], 0
call fcn.0046cf10
test al, al
je 0x4735be
lea eax, [ebp - 0x374]
mov dword [ebp - 0x374], 0
push eax
push dword [ebp - 0x36c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x378], eax
cmp eax, 0xffffffff
jne 0x4734ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4734a8
xor eax, eax
jmp 0x4734ae
mov eax, dword [ebp - 0x378]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x378]
push eax
push dword [ebp - 0x36c]
mov dword [ebp - 0x378], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x374], eax
cmp eax, 0xffffffff
jne 0x4734f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4734ed
xor eax, eax
mov dword [ebp - 0x374], eax
jmp 0x4734f3
mov eax, dword [ebp - 0x374]
add eax, 4
push eax
call fcn.004b12a2
add esp, 4
mov dword [ebp - 0x378], eax
test eax, eax
jne 0x47352c
mov dword [edi + 0x24], 2
lea edi, [esi + 0xc]
cmp byte [esi + 0x11c], al
jne 0x47351e
mov edi, dword [esi + 8]
mov ecx, ebx
call fcn.00464450
push 0x560198
jmp 0x473562
push dword [ebp - 0x374]
lea ecx, [ebp - 0x1c]
push eax
push ebx
call fcn.00473c30
test al, al
jne 0x473586
mov dword [edi + 0x24], 3
cmp byte [esi + 0x11c], 0
lea edi, [esi + 0xc]
jne 0x473556
mov edi, dword [esi + 8]
mov ecx, ebx
call fcn.00464450
push 0x55fb38
mov esi, eax
push 0x558df8
push esi
call fcn.004623d0
add esp, 0xc
lea ecx, [edi + 4]
push ecx
push 0x558df8
push esi
call fcn.004623d0
add esp, 0xc
jmp 0x4735c5
lea ecx, [ebp - 0x370]
call fcn.0046d1d0
mov ecx, dword [ebp - 0x378]
xor edx, edx
mov eax, dword [ebp - 0x374]
push ecx
push eax
push ecx
mov dword [ecx + eax], edx
mov ecx, edi
push ebx
call fcn.004736c0
test al, al
jne 0x4735ba
mov dword [edi + 0x24], 4
jmp 0x473547
mov bl, 1
jmp 0x4735c7
mov dword [edi + 0x24], 1
xor bl, bl
lea ecx, [ebp - 0x370]
mov dword [ebp - method.t_fileRead.virtual_0], vtable.t_fileRead.0
mov dword [ebp - 0x1c], vtable.t_byteStreamRead.0
call fcn.0046ce50
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a35cb
mov esp, ebp
pop ebp
ret 0x10
Function at 0x473a20
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x473a3a
mov eax, dword [esi + 8]
push 0x80
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 1
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.0046cf10
test al, al
pop edi
setne al
pop esi
pop ecx
pop ebp
ret 0xc

Function at 0x473a70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push 0
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
push dword [esi - 0x350]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x473b13
lea edi, [esi - 0x33c]
cmp byte [esi - 0x22c], al
jne 0x473abb
mov edi, dword [esi - 0x340]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
push eax
call fcn.00464450
mov ecx, eax
call fcn.004645e0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp + 8]
call fcn.00464450
push 0x55fb5c
mov esi, eax
push 0x558df8
push esi
call fcn.004623d0
add esp, 0xc
lea ecx, [edi + 4]
push ecx
push 0x558df8
push esi
call fcn.004623d0
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [ebp - 4]
cmp edi, ebx
je 0x473bb6
cmp byte [esi - 0x22c], 0
lea eax, [esi - 0x33c]
jne 0x473b33
mov eax, dword [esi - 0x340]
mov ecx, dword [ebp + 8]
mov dword [ebp + 0x10], eax
call fcn.00464450
push 0x560234
mov esi, eax
push 0x558df8
push esi
call fcn.004623d0
add esp, 0xc
push 0x560228
push 0x558df8
push esi
call fcn.004623d0
add esp, 0xc
push ebx
push 0x5563b4
push esi
call fcn.004623d0
add esp, 0xc
push 0x560250
push 0x558df8
push esi
call fcn.004623d0
add esp, 0xc
push edi
push 0x5563b4
push esi
call fcn.004623d0
add esp, 0xc
push 0x560244
push 0x558df8
push esi
call fcn.004623d0
mov eax, dword [ebp + 0x10]
add esp, 0xc
add eax, 4
push eax
jmp 0x473afa
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x473c30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x473d38
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push edi
push dword [ebp + 0xc]
push dword [esi - 0x350]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x473cad
lea edi, [esi - 0x33c]
cmp byte [esi - 0x22c], al
jne 0x473c80
mov edi, dword [esi - 0x340]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
push eax
call fcn.00464450
mov ecx, eax
call fcn.004645e0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp + 8]
call fcn.00464450
push 0x55fb08
jmp 0x473cd5
mov ecx, dword [ebp - 4]
test ecx, ecx
jne 0x473d01
lea edi, [esi - 0x33c]
cmp byte [esi - 0x22c], cl
jne 0x473cc8
mov edi, dword [esi - 0x340]
mov ecx, dword [ebp + 8]
call fcn.00464450
push 0x55fb6c
mov esi, eax
push 0x558df8
push esi
call fcn.004623d0
add esp, 0xc
lea ecx, [edi + 4]
push ecx
push 0x558df8
push esi
call fcn.004623d0
add esp, 0xc
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
cmp ecx, edi
je 0x473d38
cmp byte [esi - 0x22c], 0
lea eax, [esi - 0x33c]
jne 0x473d1a
mov eax, dword [esi - 0x340]
add eax, 4
push eax
push ecx
push edi
push str.penc_rN
push dword [ebp + 8]
call fcn.00464500
add esp, 0x14
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
add dword [esi + 8], edi
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x473e30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x57e6c4], 0
push ebx
mov dword [ebp - 4], 0
je 0x473f67
push dword [0x57e6cc]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call ebx
test eax, eax
je 0x473e97
cmp dword [eax], 0xd
jbe 0x473e97
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x34]
test eax, eax
je 0x473e97
push 0
push 0x581dfc
push 0x581098
push 0
push eax
call fcn.004a5e6f
add esp, 0x14
test eax, eax
je 0x473e97
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
mov dword [ebp - 4], eax
test eax, eax
jne 0x473fbd
cmp dword [0x57e6c4], 0
je 0x473f67
push esi
push edi
push 0x58ecf4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edx, [ebp - 4]
call fcn.004744b0
mov esi, dword [ebp - 4]
test esi, esi
jne 0x473f53
push 0x2014
call fcn.004a35dc
add esp, 4
mov dword [ebp - 4], eax
mov ecx, eax
call fcn.00473d50
cmp dword [0x57e6c4], 0
mov esi, eax
je 0x473f53
push dword [0x57e6cc]
call ebx
test eax, eax
je 0x473f53
cmp dword [eax], 0xd
jbe 0x473f53
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x34]
test ecx, ecx
jne 0x473f4d
push 8
call fcn.004a35dc
mov edi, eax
add esp, 4
mov dword [ebp - 4], edi
mov dword [edi], vtable.t_visualDataItemPtr_class_t_perfManager_.0
mov dword [edi + 4], esi
cmp dword [0x57e6c4], 0
je 0x473f53
push dword [0x57e6cc]
call ebx
test eax, eax
je 0x473f53
cmp dword [eax], 0xd
jbe 0x473f53
mov eax, dword [eax + 8]
push 0x58ecf4
mov dword [eax + 0x34], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ecx]
push esi
call dword [edx + 0xc]
push 0x58ecf4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x58edc0]
test eax, eax
jne 0x473fbd
push 0x58ecf4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x58fbb8]
test al, 1
jne 0x473fa3
or eax, 1
mov ecx, 0x58fbc0
mov dword [0x58fbb8], eax
call fcn.00473d50
push 0x4ffe20
call fcn.004a3ba1
add esp, 4
push 0x58ecf4
mov dword [0x58edc0], 0x58fbc0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x58edc0]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4744b0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x57e6c4], 0
push esi
mov esi, edx
je 0x474503
push dword [0x57e6cc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x474503
cmp dword [eax], 0xd
jbe 0x474503
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x34]
test eax, eax
je 0x474503
push 0
push 0x581dfc
push 0x581098
push 0
push eax
call fcn.004a5e6f
mov ecx, eax
add esp, 0x14
test ecx, ecx
je 0x474503
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [esi], eax
mov al, 1
pop esi
ret
xor al, al
pop esi
ret