joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4207f0
Capabilities:
Get session user name

Disassembly:
sub esp, 0x210
push esi
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 0
push ecx
mov dword [esp + 0x10], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x420832
push 0x4b84f0
xor esi, esi
push edi
call fcn.00419c10
mov eax, edi
pop esi
add esp, 0x210
ret
lea eax, [esp + 0xc]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x420840
sub eax, edx
lea edx, [esp + 0xc]
sar eax, 1
push edx
mov esi, eax
push edi
call fcn.00419c10
mov eax, edi
pop esi
add esp, 0x210
ret

Function at 0x420870
Capabilities:
Get hostname

Disassembly:
sub esp, 0x28
push esi
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
push ecx
mov dword [esp + 0xc], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x4208ac
push 0x4b84f0
xor esi, esi
push edi
call fcn.00419c10
mov eax, edi
pop esi
add esp, 0x28
ret
lea eax, [esp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4208b3
sub eax, edx
lea edx, [esp + 8]
sar eax, 1
push edx
mov esi, eax
push edi
call fcn.00419c10
mov eax, edi
pop esi
add esp, 0x28
ret

Function at 0x4222c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x49fd18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x4da0cc]
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4222f8
mov dword [esp + 0x18], 0x4d79e4
mov ecx, dword [0x4da0cc]
push 0x4d79e4
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x4d9f40
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [esp + 0x14], 0x4d9f40
mov edx, dword [esp + 0x2c]
mov bl, 1
mov byte [esp + 0x24], bl
mov ecx, dword [edx]
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x422336
sub eax, esi
push ecx
sar eax, 1
lea ecx, [esp + 0x14]
push ecx
mov esi, eax
call fcn.00419c10
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x2c], 2
call fcn.00439340
mov byte [esp + 0x24], bl
mov edi, dword [esp + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push edi
mov byte [esp + 0x30], al
call ebp
test eax, eax
jg 0x42238c
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov byte [esp + 0x24], 0
mov edi, dword [esp + 0x14]
push edi
call ebp
test eax, eax
jg 0x4223a9
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov dword [esp + 0x24], 0xffffffff
mov ecx, dword [esp + 0x18]
mov edx, dword [0x4da0cc]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x1c]
mov al, byte [esp + 0x2c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret 4
Function at 0x4223e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x49fcf1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
mov dword [esp + 0x20], 0
mov eax, dword [0x4da0cc]
push edi
mov ebx, ecx
push eax
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x422426
mov dword [esp + 0x1c], 0x4d79e4
mov ecx, dword [0x4da0cc]
push 0x4d79e4
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x4d9f40
mov dword [esp + 0x38], 1
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [esp + 0x18], 0x4d9f40
mov byte [esp + 0x34], 2
mov ecx, dword [ebx]
mov eax, ecx
lea esi, [eax + 2]
nop
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x422460
sub eax, esi
sar eax, 1
push ecx
lea edx, [esp + 0x24]
push edx
mov esi, eax
call fcn.00419c10
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x3c], 3
call fcn.00439340
mov byte [esp + 0x34], 2
mov edi, dword [esp + 0x20]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push edi
mov byte [esp + 0x1b], al
call ebp
test eax, eax
jg 0x4224bb
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov ebx, dword [esp + 0x28]
cmp byte [esp + 0x17], 0
je 0x4224da
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x3c]
push edi
mov dword [edx], edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov byte [esp + 0x34], 1
jmp 0x422506
mov edx, dword [ebx]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4224e1
sub eax, esi
push edx
mov edx, dword [esp + 0x40]
sar eax, 1
push edx
mov esi, eax
call fcn.00419c10
mov byte [esp + 0x34], 1
mov edi, dword [esp + 0x18]
push edi
mov dword [esp + 0x28], 1
call ebp
test eax, eax
jg 0x422522
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov byte [esp + 0x34], 0
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x4da0cc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x28
ret 4
Function at 0x423a70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a1290
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x4da0cc]
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
xor ebx, ebx
mov dword [esp + 0xc], eax
cmp eax, ebx
jne 0x423aaf
mov dword [esp + 0xc], 0x4d79e4
mov ecx, dword [0x4da0cc]
push 0x4d79e4
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x28], ebx
call fcn.0042b370
add esp, 4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov byte [esp + 0x24], 1
mov eax, dword [eax]
push ecx
add eax, 0xc
push eax
push edx
push ebx
call fcn.00435b20
mov dword [esp + 0x24], eax
mov byte [esp + 0x34], bl
mov eax, dword [esp + 0x20]
add esp, 0x10
push eax
mov edi, eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x423b14
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0xc]
mov ecx, dword [0x4da0cc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x424720
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a0338
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
mov eax, dword [eax]
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea esi, [esp + 0x24]
mov dword [esp + 0x18], 0
call fcn.00426df0
mov edi, dword [esp + 0x24]
mov esi, dword [edi + 4]
mov ecx, dword [esp + 0x30]
lea ebx, [esi + 1]
push ebx
push esi
add edi, 0xc
call fcn.00419ec0
mov ecx, dword [esp + 0x30]
push eax
push ebx
push esi
call fcn.00419ec0
push eax
push ebx
push esi
mov esi, dword [esp + 0x40]
mov ecx, esi
call fcn.00419ec0
push eax
push 4
push 3
mov ecx, ebp
call fcn.00419ec0
push eax
push edi
call fcn.00447a9c
mov ecx, dword [ebp]
lea eax, [ecx + 0xc]
add esp, 0x24
lea edx, [eax + 2]
mov di, word [eax]
add eax, 2
test di, di
jne 0x4247b0
sub eax, edx
sar eax, 1
mov dword [ecx + 4], eax
mov ecx, dword [ebp]
xor edx, edx
mov word [ecx + eax*2 + 0xc], dx
mov ecx, dword [esi]
lea eax, [ecx + 0xc]
lea edi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4247d4
sub eax, edi
sar eax, 1
mov dword [ecx + 4], eax
mov ecx, dword [esi]
mov esi, dword [esp + 0x2c]
xor edx, edx
mov word [ecx + eax*2 + 0xc], dx
mov ecx, dword [esi]
lea eax, [ecx + 0xc]
lea edi, [eax + 2]
jmp 0x424800
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x424800
sub eax, edi
sar eax, 1
mov dword [ecx + 4], eax
mov ecx, dword [esi]
mov esi, dword [esp + 0x30]
xor edx, edx
mov word [ecx + eax*2 + 0xc], dx
mov ecx, dword [esi]
lea eax, [ecx + 0xc]
lea edi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x424827
sub eax, edi
sar eax, 1
mov dword [ecx + 4], eax
mov ecx, dword [esi]
mov dword [esp + 0x18], 0xffffffff
mov edi, dword [esp + 0x24]
xor edx, edx
push edi
mov word [ecx + eax*2 + 0xc], dx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x424866
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret

Function at 0x426f90
Capabilities:
Set current directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x49dc48
push eax
mov dword fs:[0], esp
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
push ebx
push esi
push edi
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x18], 0
call fcn.00425590
mov edi, dword [esp + 0x20]
add esp, 4
lea eax, [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne al
test al, al
jne 0x426ff6
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041e420
push edi
mov dword [esp + 0x18], 0xffffffff
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x427016
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret
Function at 0x427030
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4a1c29
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
xor esi, esi
push edi
push esi
mov dword [esp + 0x28], esi
push esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edi, 0x4d9f40
push edi
mov ebp, eax
call ebx
mov dword [esp + 0x10], edi
cmp ebp, esi
mov dword [esp + 0x24], 1
jg 0x42708f
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041e420
push edi
mov byte [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4270b7
mov ebx, dword [0x4d9f48]
mov esi, 0x4da170
call fcn.00432310
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
xor esi, esi
push 0x4d9f40
call ebx
mov edi, dword [esp + 0x2c]
mov dword [edi], 0x4d9f40
lea ecx, [ebp - 1]
push ecx
mov dword [esp + 0x28], esi
mov ecx, edi
mov dword [esp + 0x18], 1
call fcn.00419ec0
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, ebp
mov dword [esp + 0x18], eax
jl 0x427117
push 0
push 0x3d8
push str.d:_build10_fineobjects_src_filesystem.cpp
push 0x4b84f0
push 0x4b84f0
push 0
call fcn.0041d410
add esp, 0x18
mov eax, dword [edi]
mov dword [eax + 4], esi
mov edx, dword [edi]
xor eax, eax
mov word [edx + esi*2 + 0xc], ax
test esi, esi
jne 0x42714f
push 0x4d9f40
call ebx
mov dword [esp + 0x10], 0x4d9f40
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x2c], 2
call fcn.0041e420
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x427170
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4a1c29
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
xor esi, esi
push edi
push esi
mov dword [esp + 0x28], esi
push esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edi, 0x4d9f40
push edi
mov ebp, eax
call ebx
mov dword [esp + 0x10], edi
cmp ebp, esi
mov dword [esp + 0x24], 1
jg 0x4271cf
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041e420
push edi
mov byte [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4271f7
mov ebx, dword [0x4d9f48]
mov esi, 0x4da170
call fcn.00432310
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
xor esi, esi
push 0x4d9f40
call ebx
mov edi, dword [esp + 0x2c]
mov dword [edi], 0x4d9f40
push ebp
push ecx
lea ecx, [ebp - 1]
push ecx
mov dword [esp + 0x30], esi
mov ecx, edi
mov dword [esp + 0x20], 1
call fcn.00419ec0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, ebp
mov dword [esp + 0x18], eax
jl 0x42725b
push 0
push 0x3e8
push str.d:_build10_fineobjects_src_filesystem.cpp
push 0x4b84f0
push 0x4b84f0
push 0
call fcn.0041d410
add esp, 0x18
mov eax, dword [edi]
mov dword [eax + 4], esi
mov edx, dword [edi]
xor eax, eax
mov word [edx + esi*2 + 0xc], ax
test esi, esi
jne 0x427293
push 0x4d9f40
call ebx
mov dword [esp + 0x10], 0x4d9f40
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x2c], 2
call fcn.0041e420
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret
Function at 0x4272b0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4a1c29
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
xor esi, esi
push edi
push esi
mov dword [esp + 0x28], esi
push esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edi, 0x4d9f40
push edi
mov ebp, eax
call ebx
mov dword [esp + 0x10], edi
cmp ebp, esi
mov dword [esp + 0x24], 1
jg 0x42730f
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041e420
push edi
mov byte [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x427337
mov ebx, dword [0x4d9f48]
mov esi, 0x4da170
call fcn.00432310
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
xor esi, esi
push 0x4d9f40
call ebx
mov edi, dword [esp + 0x2c]
mov dword [edi], 0x4d9f40
push ebp
push ecx
lea ecx, [ebp - 1]
push ecx
mov dword [esp + 0x30], esi
mov ecx, edi
mov dword [esp + 0x20], 1
call fcn.00419ec0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, ebp
mov dword [esp + 0x18], eax
jl 0x42739b
push 0
push 0x3f8
push str.d:_build10_fineobjects_src_filesystem.cpp
push 0x4b84f0
push 0x4b84f0
push 0
call fcn.0041d410
add esp, 0x18
mov eax, dword [edi]
mov dword [eax + 4], esi
mov edx, dword [edi]
xor eax, eax
mov word [edx + esi*2 + 0xc], ax
test esi, esi
jne 0x4273d3
push 0x4d9f40
call ebx
mov dword [esp + 0x10], 0x4d9f40
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x2c], 2
call fcn.0041e420
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret
Function at 0x4273f0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4a1c29
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
xor esi, esi
push edi
push esi
mov dword [esp + 0x28], esi
push esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edi, 0x4d9f40
push edi
mov ebp, eax
call ebx
mov dword [esp + 0x10], edi
cmp ebp, esi
mov dword [esp + 0x24], 1
jg 0x42744f
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041e420
push edi
mov byte [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x427477
mov ebx, dword [0x4d9f48]
mov esi, 0x4da170
call fcn.00432310
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
xor esi, esi
push 0x4d9f40
call ebx
mov edi, dword [esp + 0x2c]
mov dword [edi], 0x4d9f40
lea ecx, [ebp - 1]
push ecx
mov dword [esp + 0x28], esi
mov ecx, edi
mov dword [esp + 0x18], 1
call fcn.00419ec0
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, ebp
mov dword [esp + 0x18], eax
jl 0x4274d7
push 0
push 0x408
push str.d:_build10_fineobjects_src_filesystem.cpp
push 0x4b84f0
push 0x4b84f0
push 0
call fcn.0041d410
add esp, 0x18
mov eax, dword [edi]
mov dword [eax + 4], esi
mov edx, dword [edi]
xor eax, eax
mov word [edx + esi*2 + 0xc], ax
test esi, esi
jne 0x42750f
push 0x4d9f40
call ebx
mov dword [esp + 0x10], 0x4d9f40
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x2c], 2
call fcn.0041e420
mov ecx, edi
call fcn.00425430
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret
Function at 0x427740
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x49ef19
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
push edi
xor ebp, ebp
mov dword [esp + 0x24], ebp
lea eax, [esp + 0x14]
mov dword [esp + 0x18], ebp
mov edi, dword [sym.imp.USERENV.dll_GetDefaultUserProfileDirectoryW]
push eax
push ebp
mov dword [esp + 0x1c], ebp
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4277a7
call ebx
push eax
push 0x441
push str.d:_build10_fineobjects_src_filesystem.cpp
push 0x4b84f0
push 0x4b84f0
push 1
call fcn.0041d410
add esp, 0x18
push 0x4d9f40
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [esi], 0x4d9f40
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x28], ebp
mov edx, dword [esp + 0x18]
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x24], 1
call fcn.00419ec0
add esp, 4
push eax
call edi
test eax, eax
jne 0x427801
call ebx
push eax
push 0x443
push str.d:_build10_fineobjects_src_filesystem.cpp
push 0x4b84f0
push 0x4b84f0
push 1
call fcn.0041d410
add esp, 0x18
mov edx, dword [esi]
lea eax, [edx + 0xc]
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x427810
sub eax, edi
sar eax, 1
mov dword [edx + 4], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2 + 0xc], dx
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret
Function at 0x427c90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a2469
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], esi
push 0x4da058
mov dword [ebp - 0x2c], 0x4da058
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x28], 1
mov ebx, 1
mov dword [ebp - 4], ebx
mov eax, dword [0x4da0cc]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
cmp eax, esi
jne 0x427cf1
mov dword [ebp - 0x14], 0x4d79e4
mov ecx, dword [0x4da0cc]
push 0x4d79e4
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov byte [ebp - 4], 2
mov edx, dword [0x4da710]
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, edx
push eax
mov dword [esi], edx
call edi
push esi
mov dword [ebp - 0x18], ebx
call fcn.00441840
mov edx, dword [eax]
add esp, 4
mov ecx, eax
mov eax, dword [edx + 0xc]
push esi
call eax
test al, al
jne 0x427e1c
lea ecx, [ebp - 0x20]
push ecx
mov byte [ebp - 4], 3
call fcn.004273f0
mov ebx, eax
add esp, 4
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 4
mov eax, dword [ebx]
push eax
call edi
mov edi, dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x427d79
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov esi, dword [ebp + 8]
mov ebx, dword [ebp - 0x1c]
mov edx, dword [ebx]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x20]
push eax
mov dword [esi], edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x427da1
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 2
jmp 0x427dc9
push esi
call fcn.00441840
mov edx, dword [eax]
add esp, 4
mov ecx, eax
mov eax, dword [edx + 0xc]
push esi
call eax
test al, al
jne 0x427e1c
lea ecx, [ebp - 0x20]
push ecx
call fcn.004272b0
add esp, 4
push eax
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.004018e0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x20]
push eax
mov edi, eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x427e1c
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov esi, dword [ebp + 8]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4da0cc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x4da058
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x427e60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x49ed80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebp
push esi
push edi
push 0x4da058
mov dword [esp + 0x14], 0x4da058
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x14], 1
mov dword [esp + 0x20], 0
mov eax, dword [0x4da0cc]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, eax
test eax, eax
jne 0x427eb2
mov ebp, 0x4d79e4
mov ecx, dword [0x4da0cc]
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x4d79e4
push ecx
mov dword [esp + 0x14], ebp
call esi
mov edx, dword [esp + 0x28]
mov byte [esp + 0x20], 1
mov ecx, dword [edx]
add ecx, 0xc
mov eax, ecx
lea edi, [eax + 2]
lea ecx, [ecx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x427ee0
sub eax, edi
sar eax, 1
push eax
push ecx
mov ecx, 0x4da710
call fcn.0041b210
mov byte [esp + 0x20], 0
mov eax, dword [0x4da0cc]
push ebp
push eax
call esi
push 0x4da058
mov dword [esp + 0x24], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret