joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403d90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f378
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5109b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov ebx, dword [0x4362f0]
lea eax, [ebp - 0x14]
push 0xffffffffffffffff
push 0
push str.Dialog
push 0x437c3c
push eax
call ebx
add esp, 0x14
mov ecx, dword [ebp + 8]
push eax
mov dword [ebp - 4], 0
call dword [0x436de4]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call dword [0x436368]
push 0xffffffffffffffff
push 0
push 0x437cf0
lea eax, [ebp + 8]
push 0x437c3c
push eax
call ebx
add esp, 0x14
mov ecx, dword [edi + 4]
push eax
mov dword [ebp - 4], 1
call dword [0x436db4]
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call dword [0x436368]
push 0xffffffffffffffff
push 0
push 0x437d04
lea eax, [ebp + 8]
push 0x437c3c
push eax
call ebx
add esp, 0x14
mov ecx, dword [edi + 0xc]
mov esi, dword [0x436da8]
push eax
mov dword [ebp - 4], 2
call esi
lea ecx, [ebp + 8]
call dword [0x436368]
lea ecx, [ebp + 8]
call dword [0x436370]
mov ecx, dword [edi + 0x14]
mov edi, dword [0x436d90]
push eax
mov dword [ebp - 4], 3
call edi
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call dword [0x436368]
push 0xffffffffffffffff
push 0
push 0x437d1c
lea eax, [ebp + 8]
push 0x437c3c
push eax
call ebx
add esp, 0x14
mov ecx, dword [ebp - 0x10]
push eax
mov dword [ebp - 4], 4
mov ecx, dword [ecx + 0x18]
call esi
lea ecx, [ebp + 8]
call dword [0x436368]
lea ecx, [ebp + 8]
call dword [0x436370]
mov dword [ebp - 4], 5
push eax
mov esi, dword [ebp - 0x10]
mov ecx, dword [esi + 0x20]
call edi
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call dword [0x436368]
push 0xffffffffffffffff
push 0
push 0x437d34
lea eax, [ebp + 8]
push 0x437c3c
push eax
call ebx
add esp, 0x14
mov ecx, dword [esi + 0x2c]
push eax
mov dword [ebp - 4], 6
call edi
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call dword [0x436368]
push 0xffffffffffffffff
push 0
push 0x437d3c
lea eax, [ebp - 0x18]
push 0x437c3c
push eax
call ebx
add esp, 0x14
mov ecx, dword [esi + 0x30]
push eax
mov dword [ebp - 4], 7
call edi
lea ecx, [ebp - 0x18]
call dword [0x436368]
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 0x4074c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fcc1
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5109b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov ebx, dword [0x4362f0]
lea eax, [ebp - 0x14]
push 0xffffffffffffffff
push 0
push str.Dialog
push 0x438144
push eax
call ebx
add esp, 0x14
mov ecx, dword [ebp + 8]
push eax
mov dword [ebp - 4], 0
call dword [0x436de4]
lea ecx, [ebp - 0x14]
call dword [0x436368]
lea ecx, [ebp + 8]
call dword [0x436370]
mov ecx, dword [edi + 4]
push eax
mov dword [ebp - 4], 1
call dword [0x436db4]
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call dword [0x436368]
push 0xffffffffffffffff
push 0
push str.hex:
lea eax, [ebp + 8]
push 0x438144
push eax
call ebx
add esp, 0x14
mov ecx, dword [edi + 0xc]
mov esi, dword [0x436da8]
push eax
mov dword [ebp - 4], 2
call esi
lea ecx, [ebp + 8]
call dword [0x436368]
lea ecx, [ebp + 8]
call dword [0x436370]
mov ecx, dword [edi + 0x14]
mov edi, dword [0x436d90]
push eax
mov dword [ebp - 4], 3
call edi
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call dword [0x436368]
push 0xffffffffffffffff
push 0
push str.bin:
lea eax, [ebp + 8]
push 0x438144
push eax
call ebx
add esp, 0x14
mov ecx, dword [ebp - 0x10]
push eax
mov dword [ebp - 4], 4
mov ecx, dword [ecx + 0x18]
call esi
lea ecx, [ebp + 8]
call dword [0x436368]
lea ecx, [ebp + 8]
call dword [0x436370]
mov esi, dword [ebp - 0x10]
push eax
mov dword [ebp - 4], 5
mov ecx, dword [esi + 0x20]
call edi
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call dword [0x436368]
push 0xffffffffffffffff
push 0
push str.hexbin
lea eax, [ebp + 8]
push 0x438144
push eax
call ebx
add esp, 0x14
mov ecx, dword [esi + 0x2c]
push eax
mov dword [ebp - 4], 6
call edi
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call dword [0x436368]
push 0xffffffffffffffff
push 0
push str.binhex
lea eax, [ebp + 8]
push 0x438144
push eax
call ebx
add esp, 0x14
mov ecx, dword [esi + 0x30]
push eax
mov dword [ebp - 4], 7
call edi
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call dword [0x436368]
push 0xffffffffffffffff
push 0
push 0x4379ac
lea eax, [ebp - 0x18]
push 0x438144
push eax
call ebx
add esp, 0x14
mov ecx, dword [esi + 0x34]
push eax
mov dword [ebp - 4], 8
call edi
lea ecx, [ebp - 0x18]
call dword [0x436368]
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 0x423f30
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x434373
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5109b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0
push dword [ebp + 8]
call dword [0x436ddc]
push 0x40
mov dword [ebp - 4], 0
mov dword [edi], vtable.programautodlg.0
mov dword [edi + 8], vtable.programautodlg.1.0
call fcn.0042d8c4
push 0
push 0x437157
mov dword [edi + 0x18], eax
call dword [0x43632c]
add esp, 0xc
mov dword [edi + 0x1c], eax
lea ecx, [edi + 0x20]
mov byte [ebp - 4], 1
call dword [0x43626c]
mov ecx, dword [edi + 0x18]
push edi
mov byte [ebp - 4], 2
mov dword [edi + 0x24], 0
mov word [edi + 0x28], 0
mov byte [edi + 0x2a], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
call fcn.00425750
push 0xffffffffffffffff
push 0
lea eax, [ebp + 8]
push str._Beta
push eax
call dword [0x436304]
add esp, 0x10
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call dword [0x436de4]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call dword [0x436368]
mov ecx, dword [edi + 0x18]
mov esi, dword [0x436d98]
push 1
mov ecx, dword [ecx + 0xc]
call esi
mov ecx, dword [edi + 0x18]
push 1
mov ecx, dword [ecx + 0x10]
call esi
mov ecx, dword [edi + 0x18]
push 1
mov ecx, dword [ecx + 0x14]
call esi
mov ecx, dword [edi + 0x18]
push 1
mov ecx, dword [ecx + 0x18]
call esi
mov ecx, dword [edi + 0x18]
mov esi, dword [0x4365d8]
mov ecx, dword [ecx + 0x20]
call esi
mov ecx, dword [edi + 0x18]
mov ecx, dword [ecx + 0x24]
call esi
mov ecx, dword [edi + 0x18]
push 1
mov ecx, dword [ecx + 4]
call dword [0x4369e0]
mov ecx, dword [edi + 0x18]
push 0
mov ecx, dword [ecx + 0x30]
call dword [0x4365e4]
push 0xffffffffffffffff
push 0
push 0x43cdc8
lea eax, [ebp + 8]
push eax
call dword [0x436304]
add esp, 0x10
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.00424140
lea ecx, [ebp + 8]
call dword [0x436368]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4254f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4348fa
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5109b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [0x4362f0]
lea eax, [ebp - 0x10]
push 0xffffffffffffffff
push 0
push str.Dialog
push 0x43ccd8
push eax
call edi
add esp, 0x14
mov ecx, dword [ebp + 8]
push eax
mov dword [ebp - 4], 0
call dword [0x436de4]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call dword [0x436368]
push 0xffffffffffffffff
push 0
push 0x43cd54
lea eax, [ebp + 8]
push 0x43ccd8
push eax
call edi
add esp, 0x14
mov ecx, dword [ebx + 0xc]
mov esi, dword [0x436d94]
push eax
mov dword [ebp - 4], 1
call esi
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call dword [0x436368]
push 0xffffffffffffffff
push 0
push 0x43cd70
lea eax, [ebp + 8]
push 0x43ccd8
push eax
call edi
add esp, 0x14
mov ecx, dword [ebx + 0x10]
push eax
mov dword [ebp - 4], 2
call esi
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call dword [0x436368]
push 0xffffffffffffffff
push 0
push 0x43cd80
lea eax, [ebp + 8]
push 0x43ccd8
push eax
call edi
add esp, 0x14
mov ecx, dword [ebx + 0x14]
push eax
mov dword [ebp - 4], 3
call esi
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call dword [0x436368]
push 0xffffffffffffffff
push 0
push str.:0
lea eax, [ebp + 8]
push 0x43ccd8
push eax
call edi
add esp, 0x14
mov ecx, dword [ebx + 0x18]
push eax
mov dword [ebp - 4], 4
call esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [0x436368]
push 0xffffffffffffffff
push 0
push 0x43ab78
lea eax, [ebp + 8]
push 0x43ccd8
push eax
call edi
add esp, 0x14
mov ecx, dword [ebx + 0x24]
mov esi, dword [0x436d90]
push eax
mov dword [ebp - 4], 5
call esi
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call dword [0x436368]
push 0xffffffffffffffff
push 0
push 0x43c50c
lea eax, [ebp + 8]
push 0x43ccd8
push eax
call edi
add esp, 0x14
mov ecx, dword [ebx + 0x2c]
push eax
mov dword [ebp - 4], 6
call esi
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call dword [0x436368]
push 0xffffffffffffffff
push 0
push 0x43c514
lea eax, [ebp + 8]
push 0x43ccd8
push eax
call edi
add esp, 0x14
mov ecx, dword [ebx + 0x30]
push eax
mov dword [ebp - 4], 7
call esi
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call dword [0x436368]
push 0xffffffffffffffff
push 0
push 0x43cda0
lea eax, [ebp + 8]
push 0x43ccd8
push eax
call edi
add esp, 0x14
mov ecx, dword [ebx + 0x38]
push eax
mov dword [ebp - 4], 8
call esi
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call dword [0x436368]
push 0xffffffffffffffff
push 0
push 0x4379ac
lea eax, [ebp - 0x14]
push 0x43ccd8
push eax
call edi
add esp, 0x14
mov ecx, dword [ebx + 0x3c]
push eax
mov dword [ebp - 4], 9
call esi
lea ecx, [ebp - 0x14]
call dword [0x436368]
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 0x103b9058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x103b91a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x103b907e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x103b906a
add dl, dl
jne 0x103b9089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x103b90dc
xor eax, eax
add dl, dl
jne 0x103b9096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x103b917d
add dl, dl
jne 0x103b90a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103b90b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103b90bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103b90c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x103b90d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x103b9075
mov eax, 1
add dl, dl
jne 0x103b90ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103b90f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x103b90e1
sub eax, ebx
mov ebx, 1
jne 0x103b9128
mov ecx, 1
add dl, dl
jne 0x103b910e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x103b9119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x103b9105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x103b9075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x103b913f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x103b914a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x103b9136
cmp eax, 0x7d00
jae 0x103b916d
cmp eax, 0x500
jb 0x103b9168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x103b9075
cmp eax, 0x7f
ja 0x103b9170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x103b9075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x103b919e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x103b9075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4056f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x43e034]
sub esp, 0x174
push ebx
push esi
push edi
mov edi, ecx
cmp eax, 0xffffffff
jne 0x409a82
call fcn.00405800
mov dword [edi + 4], 0xffffffff
mov dword [edi + 8], 0
mov eax, dword [0x43e6c0]
test eax, 0xfffffffe
jne 0x405755
mov ecx, 1
mov edx, 0x43e6c0
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x409a96
mov dword [0x43e6c4], eax
mov dword [0x43e6c0], 0x43e6c4
mov esi, dword [0x43e6c0]
push esi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov ebx, dword [0x43e6b0]
xor edx, edx
inc ebx
nop dword [eax + eax]
lea eax, [ebx + edx]
movzx ecx, al
lea eax, [ecx + ecx*2]
cmp dword [eax*4 + 0x43e6d0], 0
jne 0x409abb
lea eax, [ecx + ecx*2]
mov dword [0x43e6b0], ecx
mov dword [eax*4 + 0x43e6d0], 1
mov dword [eax*4 + 0x43e6d4], 0
mov dword [edi + 4], ecx
mov eax, dword [eax*4 + 0x43e6d8]
mov dword [edi + 8], eax
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [edi + 4]
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x409acd
mov eax, dword [edi + 4]
mov dword [esp + 0x18], 0x100
mov dword [esp + 0x1c], eax
cmp eax, 0x100
jge 0x409b19
mov dword [edi], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x405714
jmp 0x40570f
mov eax, dword [0x43e6c0]
cmp eax, 1
jne 0x405755
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x43e6c0]
cmp eax, 1
je 0x409aa4
jmp 0x405755
inc edx
cmp edx, 0x100
jl 0x405770
jmp 0x4057b3
push str.slot____kInvalidSlotValue
lea edx, [esp + 0x14]
lea ecx, [esp + 0x18]
call fcn.0040b160
add esp, 4
test eax, eax
je 0x4057d2
push eax
push 0x11b
push str.z:_build_build_src_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea ecx, [esp + 0x2c]
call fcn.0040b315
push dword [esp + 0xcc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0x28]
call fcn.0040b4ca
jmp 0x4057d2
push str.slot____kThreadLocalStorageSize
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x20]
call fcn.0040b160
add esp, 4
test eax, eax
je 0x4057ec
push eax
push 0x11c
push str.z:_build_build_src_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea ecx, [esp + 0xdc]
call fcn.0040b315
push dword [esp + 0x17c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0xd8]
call fcn.0040b4ca
jmp 0x4057ec
Function at 0x405800
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xce4
mov eax, dword [0x43e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov dword [ebp - 0x810], ebx
mov eax, dword [0x43e034]
push esi
mov esi, eax
mov dword [ebp - 0x80c], eax
mov dword [ebp - 0x810], esi
push edi
cmp esi, 0xffffffff
jne 0x40587b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, esi
je 0x409b6b
mov esi, eax
mov dword [ebp - 0x810], esi
mov dword [ebp - 0x80c], esi
test bl, 1
jne 0x409b88
cmp esi, 0xffffffff
je 0x409ba7
mov ecx, esi
mov edx, 0x43e034
or eax, 0xffffffff
lock cmpxchg dword [edx], ecx
cmp eax, 0xffffffff
jne 0x409c20
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x409c4b
test bl, 4
jne 0x409c69
push 0x800
lea eax, [ebp - 0x808]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test bl, 0x20
jne 0x409c88
push 0x800
call fcn.004065b3
add esp, 4
mov dword [ebp - 0x80c], eax
mov edi, eax
lea esi, [ebp - 0x808]
mov ecx, 0x200
rep movsd dword es:[edi], dword [esi]
push eax
push dword [ebp - 0x810]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test bl, 0x40
jne 0x409c9b
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x80c]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00406335
mov esp, ebp
pop ebp
ret
push ecx
push 0x71
push str.z:_build_build_src_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea ecx, [ebp - 0x8c0]
call fcn.0040b2a0
mov ebx, 1
jmp 0x405852
push dword [ebp - 0x814]
and ebx, 0xfffffffe
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 0x8b8]
call fcn.0040b4ca
jmp 0x40585b
lea ecx, [ebp - 0x80c]
call fcn.0040f38c
mov esi, dword [ebp - 0x80c]
mov dword [ebp - 0x810], esi
test al, al
je 0x409bc7
cmp esi, 0xffffffff
jne 0x409bdd
push ecx
push 0x7b
push str.z:_build_build_src_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea ecx, [ebp - 0x970]
or ebx, 2
call fcn.0040b2a0
test bl, 2
je 0x409bfc
push dword [ebp - 0x8c4]
and ebx, 0xfffffffd
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 0x968]
call fcn.0040b4ca
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_TlsFree]
test bl, 8
je 0x405864
lea ecx, [ebp - 0xad0]
and ebx, 0xfffffff7
call fcn.0040b458
jmp 0x405864
push esi
call dword [sym.imp.KERNEL32.dll_TlsFree]
test bl, 0x10
je 0x409c3a
lea ecx, [ebp - 0xb80]
and ebx, 0xffffffef
call fcn.0040b458
mov esi, dword [0x43e034]
mov dword [ebp - 0x810], esi
jmp 0x40587b
push ecx
push 0x8d
push str.z:_build_build_src_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea ecx, [ebp - 0xa20]
or ebx, 4
call fcn.0040b2a0
jmp 0x40588a
push dword [ebp - 0x974]
and ebx, 0xfffffffb
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 0xa18]
call fcn.0040b4ca
jmp 0x405893
lea ecx, [ebp - 0xc30]
and ebx, 0xffffffdf
call fcn.0040b458
jmp 0x4058c0
lea ecx, [ebp - 0xce0]
call fcn.0040b458
jmp 0x4058f8
Function at 0x40ac8a
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push esi
push 0
push 0
push str.PATH
call ebx
mov esi, eax
test esi, esi
je 0x40ad1b
push edi
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004065b3
pop ecx
push esi
mov edi, eax
push edi
push str.PATH
call ebx
lea ecx, [esi - 1]
cmp ecx, eax
jne 0x40ad13
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
test ebx, ebx
je 0x40ad13
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004065b3
pop ecx
push ebx
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x40ad0c
push esi
push str.PATH
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.00406346
pop ecx
push edi
call fcn.00406346
pop ecx
pop edi
pop esi
pop ebx
ret

Function at 0x40cb6a
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
push edi
xor edi, edi
mov esi, 0x811c9dc5
test edx, edx
je 0x40cb88
movzx eax, byte [edi + ecx]
xor eax, esi
imul esi, eax, 0x1000193
inc edi
cmp edi, edx
jb 0x40cb77
pop edi
mov eax, esi
pop esi
ret

Function at 0x40db7c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x1c]
test ecx, ecx
je 0x40dbf1
cmp dword [ebp + 0xc], 0x7fffffff
ja 0x40dbf1
xor esi, esi
cmp dword [edi + 0x24], esi
jne 0x40dbf1
cmp byte [edi], 0
je 0x40dbac
call fcn.0040db16
test al, al
je 0x40dbf1
push dword [ebp + 0xc]
cmp byte [edi + 0x28], 0
push esi
push esi
push 4
pop eax
push 6
pop ecx
cmove eax, ecx
push eax
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
mov dword [edi + 0x24], ebx
test ebx, ebx
je 0x40dbf1
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40dbea
mov esi, dword [ebp - 0x18]
sub esi, ebx
add esi, dword [ebp - 0x10]
mov dword [edi + 0x20], esi
mov al, 1
jmp 0x40dbf3
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40f296
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x140c
call fcn.004072e0
mov eax, dword [0x43e00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x43e034]
and dword [ebp - 0x1408], 0
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x1408], eax
push edi
mov ecx, 0x200
lea edi, [ebp - 0x804]
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x804]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
call fcn.00406346
pop ecx
call fcn.0040a41c
push eax
mov dword [ebp - 0x140c], eax
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
push dword [ebp - 0x140c]
mov ecx, 0x300
lea edi, [ebp - 0x1404]
mov esi, 0x43e6d0
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ebx, 0x100
xor cl, cl
lea edi, [ebp - 0x13fc]
xor esi, esi
mov edx, dword [ebp + esi*8 - 0x804]
test edx, edx
je 0x40f358
cmp dword [edi - 8], 0
je 0x40f358
mov eax, dword [ebp + esi*8 - 0x800]
cmp eax, dword [edi]
jne 0x40f358
cmp dword [edi - 4], 0
je 0x40f358
and dword [ebp + esi*8 - 0x804], 0
push edx
call dword [edi - 4]
pop ecx
mov cl, 1
inc esi
add edi, 0xc
cmp esi, 0x100
jl 0x40f327
dec ebx
test ebx, ebx
jle 0x40f36d
test cl, cl
jne 0x40f31d
push 0
push dword [ebp - 0x1408]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406335
mov esp, ebp
pop ebp
ret

Function at 0x40f590
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [ecx + 4]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x40f5a0
xor al, al
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40f59d
mov ecx, 0xe0
cmp word [eax + 0x14], cx
jne 0x40f59d
add ecx, 0x2b
cmp word [eax + 0x18], cx
sete al
ret