joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417bc0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov edi, dword [ebp + 8]
cmp dword [ecx + 8], 0
mov eax, dword [ecx]
jne 0x417bec
test eax, eax
jne 0x417bec
xor eax, eax
cmp dword [esi + 0xc], 0
jne 0x417bec
xor eax, eax
cmp dword [esi + 4], 0
mov edx, 0
je 0x417c43
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x417c0b
call fcn.00413650
push dword [esi]
call fcn.004187a0
add esp, 4
mov dword [esi], 0
xor eax, eax
mov ecx, dword [esi + 4]
lea edx, [ecx + 1]
cmp edx, 2
jb 0x417c31
call fcn.00413650
push dword [esi + 4]
call fcn.004187a0
add esp, 4
mov dword [esi + 4], 0
mov eax, dword [esi]
xor ecx, ecx
mov edx, eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, ecx
mov ebx, dword [edi]
cmp edx, ebx
je 0x417c8c
call dword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
add eax, 1
cmp eax, 2
jb 0x417c70
call fcn.00413650
push dword [esi]
call fcn.004187a0
add esp, 4
mov dword [esi], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x417c7f
mov dword [esi], ebx
call fcn.00413650
push edi
call dword [sym.imp.kernel32.dll_SetLastError]
mov eax, dword [esi + 4]
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 4]
cmp eax, ebx
je 0x417cd7
call dword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi + 4]
add eax, 1
cmp eax, 2
jb 0x417cbd
call fcn.00413650
push dword [esi + 4]
call fcn.004187a0
add esp, 4
mov dword [esi + 4], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x417ccd
mov dword [esi + 4], ebx
call fcn.00413650
push edi
call dword [sym.imp.kernel32.dll_SetLastError]
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x417e00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x5c3648]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ecx, ecx
je 0x417e92
mov edi, ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], 0
mov esi, dword [sym.imp.kernel32.dll_GetCurrentProcess]
call esi
mov ebx, eax
call esi
lea ecx, [ebp - 0x14]
push 2
push 0
push 0
push ecx
push ebx
push edi
push eax
call dword [sym.imp.kernel32.dll_DuplicateHandle]
mov edi, eax
test eax, eax
je 0x417e96
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
cmp dword [esi], ebx
je 0x417ea3
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [esi]
add ecx, 1
cmp ecx, 2
jb 0x417e7d
mov dword [ebp - 0x18], eax
call fcn.00413650
push dword [esi]
call fcn.004187a0
mov eax, dword [ebp - 0x18]
add esp, 4
mov dword [esi], 0
lea ecx, [ebx + 1]
cmp ecx, 2
jb 0x417e9c
mov dword [esi], ebx
mov esi, eax
call fcn.00413650
mov eax, esi
jmp 0x417e9c
mov bl, 1
jmp 0x417ea8
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call dword [sym.imp.kernel32.dll_SetLastError]
test edi, edi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f2990
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x417faa
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
call fcn.00417d90
test al, al
je 0x417fce
push 0x32
push dword [esi]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push 1
push dword [esi]
call dword [sym.imp.kernel32.dll_TerminateProcess]
lea edi, [esi + 0x20]
mov ecx, edi
push 0
call fcn.00418044
mov eax, dword [esi + 0x30]
test eax, eax
je 0x417ffb
mov ecx, dword [esi + 0x38]
sub ecx, eax
push ecx
push eax
call fcn.004dfcf2
add esp, 8
xor eax, eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x41800b
push eax
call fcn.004dfcf2
add esp, 4
mov edi, dword [edi]
test edi, edi
je 0x418021
mov ecx, edi
call fcn.0042b5be
push edi
call fcn.004f2d4a
add esp, 4
lea ecx, [esi + 0x18]
call fcn.0040966a
lea ecx, [esi + 0x14]
call fcn.0040966a
lea ecx, [esi + 0x10]
call fcn.0040966a
mov ecx, esi
pop esi
pop edi
pop ebp
jmp fcn.00417cf0
Function at 0x41a920
Capabilities:
Query or enumerate registry value

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

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1010
call fcn.004f2d60
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [0x5c3648]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x810]
push 0x800
push 0xff
push ebx
call fcn.004f5340
add esp, 0xc
mov dword [ebp - 0x1018], 1
mov dword [ebp - 0x101c], 0x800
lea eax, [ebp - 0x101c]
lea ecx, [ebp - 0x1018]
push eax
push ebx
push ecx
push 0
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x41aafe
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1018]
cmp eax, 2
je 0x41aa5a
mov edi, 0x3f4
cmp eax, 1
jne 0x41aafe
push ebx
call fcn.004dfcf2
add esp, 4
mov edi, eax
mov eax, dword [esi + 0x14]
cmp eax, edi
jae 0x41aac7
sub esp, 0xc
mov al, byte [ebp - 0x1010]
mov byte [esp + 4], al
mov dword [esp + 8], ebx
mov dword [esp], edi
mov ecx, esi
jmp 0x41aac0
lea esi, [ebp - 0x1010]
push 0x800
push 0xff
push esi
call fcn.004f5340
add esp, 0xc
push 0x400
push esi
push ebx
call dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x101c], eax
add eax, 0xffffffff
mov edi, 0xea
cmp eax, 0x3ff
ja 0x41aafe
push esi
call fcn.004dfcf2
add esp, 4
mov edi, eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x14]
cmp eax, edi
mov edx, esi
jae 0x41aadb
sub esp, 0xc
mov al, byte [ebp - 0x1014]
mov byte [esp + 4], al
mov dword [esp + 8], edx
mov dword [esp], edi
call fcn.00403f30
jmp 0x41aafc
mov ecx, esi
cmp eax, 8
jb 0x41aad0
mov esi, dword [ecx]
mov dword [ecx + 0x10], edi
mov eax, edi
add eax, edi
push eax
push ebx
jmp 0x41aaed
mov esi, ecx
cmp eax, 8
jb 0x41aae4
mov esi, dword [ecx]
mov dword [ecx + 0x10], edi
mov eax, edi
add eax, edi
push eax
push edx
push esi
call fcn.004f4dc0
add esp, 0xc
mov word [esi + edi*2], 0
xor edi, edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f2990
mov eax, edi
add esp, 0x1010
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x41ac40
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, dword [ebp + 0xc]
mov eax, dword [0x5c3648]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x50], 0xffffffff
lea edi, [esp + 0x10]
push 0x4d
push str..._.._base_file_version_info_win.cc
push str.CreateFileVersionInfoWin
push edi
call fcn.00413620
add esp, 0x10
lea ecx, [esp + 0x20]
push 0
push edi
call fcn.00420880
mov dword [esp + 0xc], 0xffffffff
cmp dword [esi + 0x14], 7
jbe 0x41acb5
mov esi, dword [esi]
mov ebx, dword [ebp + 8]
lea eax, [esp + 0xc]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x41aced
js 0x41ae38
mov edi, eax
cmp eax, 0x1000
jb 0x41acfa
lea eax, [edi + 0x23]
push eax
call fcn.004dfcf2
add esp, 4
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x41ad05
mov dword [ebx], 0
mov esi, ebx
jmp 0x41ae1a
push edi
call fcn.004dfcf2
add esp, 4
mov ebx, eax
push edi
push 0
push ebx
call fcn.004f5340
add esp, 0xc
push ebx
push edi
push dword [esp + 0x14]
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41ade9
mov dword [esp + 0x10], 0
mov dword [esp + 0x64], 0xffffffff
lea esi, [esp + 0x64]
push esi
lea eax, [esp + 0x14]
push eax
push str.VarFileInfoTranslation
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41ade9
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41ade9
add edi, ebx
push 0x1c
mov dword [esp + 0xc], eax
call fcn.004dfcf2
add esp, 4
mov ecx, esi
mov esi, eax
mov eax, dword [esp + 8]
mov eax, dword [eax]
mov dword [esi], 0x563df0
mov dword [esi + 4], ebx
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x64], 0xffffffff
push ecx
lea eax, [esp + 0x14]
push eax
push 0x563fe6
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x41add9
lea edi, [esp + 0x60]
push str.::VerQueryValue_data__kRoot__fixed_file_info__dummy_size_
push 0x2a
push str..._.._base_file_version_info_win.cc
push edi
call fcn.0040e0f0
add esp, 0x10
mov ecx, edi
call fcn.0040e150
mov ecx, edi
call fcn.0040e160
mov eax, dword [esp + 0x10]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov esi, eax
jmp 0x41ae1a
mov esi, dword [ebp + 8]
mov dword [esi], 0
test ebx, ebx
je 0x41ae1a
cmp edi, 0x1000
jb 0x41ae10
mov eax, dword [ebx - 4]
add ebx, 0xfffffffc
sub ebx, eax
cmp ebx, 0x20
jae 0x41ae3d
add edi, 0x23
mov ebx, eax
push edi
push ebx
call fcn.004dfcf2
add esp, 8
lea ecx, [esp + 0x20]
call fcn.004208a0
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.004f2990
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.0040bd90
call fcn.004f81f3
int3
Function at 0x41ba64
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x5c
mov eax, dword [0x5c3648]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0x38], 0
je 0x41bb77
mov esi, ecx
lea eax, [ebp - 0x58]
mov dword [eax], 0xffffffff
lea edx, [ecx + 0x30]
lea edi, [ebp - 0x54]
mov ecx, edi
push eax
push 2
call fcn.0041bb97
add esp, 8
mov ecx, dword [edi]
test ecx, ecx
je 0x41bb7e
mov dword [ebp - 0x64], esi
cmp dword [ecx], 0
je 0x41bb6a
mov eax, dword [ebp - 0x64]
add eax, 0x18
mov dword [ebp - 0x68], eax
xor eax, eax
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x60], eax
test dword [ecx + eax*8 + 8], 0xc0000020
jne 0x41bb5b
cmp dword [ebp + 8], 0
je 0x41bb20
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp dword [eax + 4], ecx
je 0x41bb20
xor edi, edi
xor ebx, ebx
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x60]
mov esi, dword [eax + edx*8 + 4]
add ecx, edi
call fcn.0041c72c
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x41bb5b
inc ebx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
sar eax, 2
imul eax, eax, 0xf0f0f0f1
add edi, 0x44
cmp ebx, eax
jb 0x41bae8
lea edi, [ebp - 0x54]
mov ecx, edi
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x60]
push dword [eax + edx*8 + 4]
call fcn.0041c3c4
mov esi, dword [ebp - 0x64]
mov eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x20]
je 0x41bb51
push 0x44
push edi
push eax
call fcn.004f4dc0
add esp, 0xc
add dword [esi + 0x1c], 0x44
jmp 0x41bb5b
mov ecx, dword [ebp - 0x68]
push edi
push eax
call fcn.0040bde2
mov eax, dword [ebp - 0x60]
inc eax
mov ecx, dword [ebp - 0x5c]
cmp eax, dword [ecx]
jb 0x41bac3
push ecx
call fcn.004f2d4f
add esp, 4
xor esi, esi
jmp 0x41bb81
mov esi, 0x3f0
jmp 0x41bb81
mov esi, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f2990
mov eax, esi
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x420e60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1408
call fcn.004f2d60
mov eax, dword [0x5c3648]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x5c303c]
cmp eax, 0xffffffff
je 0x420fb6
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test bl, 3
je 0x420fb6
and ebx, 0xfffffffc
lea eax, [ebp - 0x810]
push 0x800
push ebx
push eax
call fcn.004f4dc0
add esp, 0xc
mov ecx, dword [0x5c303c]
lea eax, [ebp - 0x80f]
push eax
mov dword [ebp - 0x1414], ecx
push ecx
call fcn.00431960
add esp, 8
push ebx
call fcn.004f2d4f
add esp, 4
mov eax, dword [0x5cdaac]
mov ecx, dword [0x5cee38]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x420fd7
mov esi, dword [0x5cdaa8]
push esi
call dword [sym.imp.kernel32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x420fcb
lea eax, [ebp - 0x1410]
push 0xc00
push 0x5ccea8
push eax
call fcn.004f4dc0
add esp, 0xc
push esi
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov al, 1
mov ebx, 0x100
jmp 0x420f4a
lea ecx, [ebx - 1]
cmp ebx, 2
mov ebx, ecx
jb 0x420fa6
test al, 1
je 0x420fa6
xor edi, edi
lea esi, [ebp - 0x1408]
xor eax, eax
jmp 0x420f6e
add edi, 1
add esi, 0xc
cmp edi, 0x100
je 0x420f40
mov ecx, dword [ebp + edi*8 - 0x810]
test ecx, ecx
je 0x420f60
cmp dword [esi - 8], 0
je 0x420f60
mov edx, dword [ebp + edi*8 - 0x80c]
cmp edx, dword [esi]
jne 0x420f60
mov edx, dword [esi - 4]
test edx, edx
je 0x420f60
mov dword [ebp + edi*8 - 0x810], 0
push ecx
call edx
add esp, 4
mov al, 1
jmp 0x420f60
push 2
push dword [ebp - 0x1414]
call fcn.00431960
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f2990
add esp, 0x1408
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
call fcn.00422760
jmp 0x420f0d
push 0x5cdaac
call fcn.004dfcf2
add esp, 4
cmp dword [0x5cdaac], 0xffffffff
jne 0x420ef8
push 4
call fcn.004dfcf2
add esp, 4
mov esi, eax
mov ecx, eax
call fcn.00419a40
mov dword [0x5cdaa8], esi
push 0x5cdaac
call fcn.004dfcf2
add esp, 4
jmp 0x420ef8

Function at 0x421020
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5c303c]
cmp eax, 0xffffffff
je 0x421042
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
and eax, 3
add eax, 0xffffffff
cmp eax, 2
setb al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x421050
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, ecx
mov eax, dword [0x5c3648]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x5c303c]
cmp eax, 0xffffffff
je 0x42107a
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
test al, 3
jne 0x42107f
call fcn.00421260
mov eax, dword [0x5cdaac]
mov ecx, dword [0x5cee38]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x421219
mov edi, dword [0x5cdaa8]
push edi
call dword [sym.imp.kernel32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x42120d
mov ecx, dword [0x5ccea4]
add ecx, 1
mov edx, 0x100
nop word cs:[eax + eax]
nop dword [eax]
movzx ebx, cl
lea eax, [ebx + ebx*2]
cmp dword [eax*4 + 0x5ccea8], 0
je 0x4210fd
lea eax, [ecx + 1]
movzx ebx, al
lea eax, [ebx + ebx*2]
cmp dword [eax*4 + 0x5ccea8], 0
je 0x4210fd
add ecx, 2
add edx, 0xfffffffe
jne 0x4210d0
jmp 0x42112d
lea ecx, [eax*4 + 0x5ccea8]
mov dword [ecx], 1
lea eax, [ebx*4]
mov ecx, dword [ebp + 8]
mov dword [eax + eax*2 + 0x5cceac], ecx
mov dword [0x5ccea4], ebx
mov dword [esi], ebx
mov eax, dword [eax + eax*2 + 0x5cceb0]
mov dword [esi + 4], eax
push edi
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov dword [ebp - 0x14], 0xffffffff
mov ebx, dword [esi]
cmp ebx, 0xffffffff
jne 0x421196
push 0xffffffffffffffff
call fcn.00412f90
add esp, 4
mov ebx, eax
push 0xffffffffffffffff
call fcn.00412f90
add esp, 4
lea edi, [ebp - 0x14]
mov ecx, edi
push ebx
push eax
push str.slot____kInvalidSlotValue
call fcn.00413340
cmp dword [ebp - 0x14], 0
je 0x421194
lea ebx, [ebp - 0x18]
push edi
push 0x197
push str..._.._base_threading_thread_local_storage.cc
push ebx
call fcn.0040e180
add esp, 0x10
mov ecx, ebx
call fcn.0040e150
mov ecx, ebx
call fcn.0040e160
mov ebx, dword [esi]
mov dword [ebp - 0x14], 0xffffffff
cmp ebx, 0x100
jl 0x4211f9
push 0x100
call fcn.00412f90
add esp, 4
mov edi, eax
push ebx
call fcn.00412f90
add esp, 4
lea esi, [ebp - 0x14]
mov ecx, esi
push edi
push eax
push str.slot____kThreadLocalStorageSize
call fcn.00413340
cmp dword [ebp - 0x14], 0
je 0x4211f9
lea edi, [ebp - 0x18]
push esi
push 0x198
push str..._.._base_threading_thread_local_storage.cc
push edi
call fcn.0040e180
add esp, 0x10
mov ecx, edi
call fcn.0040e150
mov ecx, edi
call fcn.0040e160
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f2990
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov ecx, edi
call fcn.00422760
jmp 0x4210b5
push 0x5cdaac
call fcn.004dfcf2
add esp, 4
cmp dword [0x5cdaac], 0xffffffff
jne 0x4210a0
push 4
call fcn.004dfcf2
add esp, 4
mov edi, eax
mov ecx, eax
call fcn.00419a40
mov dword [0x5cdaa8], edi
push 0x5cdaac
call fcn.004dfcf2
add esp, 4
jmp 0x4210a0
Function at 0x421260
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x80c
mov eax, dword [0x5c3648]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x810], 0xffffffff
mov eax, dword [0x5c303c]
mov dword [ebp - 0x810], eax
cmp eax, 0xffffffff
jne 0x421358
lea edi, [ebp - 0x810]
push edi
call fcn.00431930
add esp, 4
test al, al
jne 0x4212d2
lea esi, [ebp - 0x80c]
push str.PlatformThreadLocalStorage::AllocTLS_key_
push 0xd1
push str..._.._base_threading_thread_local_storage.cc
push esi
call fcn.0040e0f0
add esp, 0x10
mov ecx, esi
call fcn.0040e150
mov ecx, esi
call fcn.0040e160
mov ecx, dword [ebp - 0x810]
cmp ecx, 0xffffffff
jne 0x42132f
push edi
call fcn.00431930
add esp, 4
test al, al
je 0x4212f3
cmp dword [ebp - 0x810], 0xffffffff
jne 0x42131f
lea esi, [ebp - 0x80c]
push str.PlatformThreadLocalStorage::AllocTLS_key___key___PlatformThreadLocalStorage::TLS_KEY_OUT_OF_INDEXES
push 0xdb
push str..._.._base_threading_thread_local_storage.cc
push esi
call fcn.0040e0f0
add esp, 0x10
mov ecx, esi
call fcn.0040e150
mov ecx, esi
call fcn.0040e160
push 0xffffffffffffffff
call fcn.00431950
add esp, 4
mov ecx, dword [ebp - 0x810]
mov eax, 0xffffffff
lock cmpxchg dword [0x5c303c], ecx
mov eax, dword [ebp - 0x810]
je 0x421358
push eax
call fcn.00431950
add esp, 4
mov eax, dword [0x5c303c]
mov dword [ebp - 0x810], eax
mov dword [ebp - 0x80c], 0xffffffff
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
and esi, 3
je 0x4213ca
push 0
call fcn.00412f90
add esp, 4
mov edi, eax
push esi
call fcn.00412f90
add esp, 4
lea esi, [ebp - 0x80c]
mov ecx, esi
push edi
push eax
push str.GetTlsVectorStateAndValue_key___TlsVectorState::kUninitialized
call fcn.00413340
cmp dword [ebp - 0x80c], 0
je 0x4213ca
lea edi, [ebp - 0x814]
push esi
push 0xed
push str..._.._base_threading_thread_local_storage.cc
push edi
call fcn.0040e180
add esp, 0x10
mov ecx, edi
call fcn.0040e150
mov ecx, edi
call fcn.0040e160
lea edi, [ebp - 0x80c]
push 0x800
push 0
push edi
call fcn.004f5340
add esp, 0xc
lea eax, [ebp - 0x809]
push eax
push dword [ebp - 0x810]
call fcn.00431960
add esp, 8
push 0x800
call fcn.004dfcf2
add esp, 4
mov esi, eax
push 0x800
push edi
push eax
call fcn.004f4dc0
add esp, 0xc
mov eax, esi
or eax, 3
push eax
push dword [ebp - 0x810]
call fcn.00431960
add esp, 8
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004f2990
mov eax, esi
add esp, 0x80c
pop esi
pop edi
pop ebp
ret
Function at 0x42785a
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov edx, dword [ebp + 0x2c]
mov eax, dword [ebp + 8]
mov ecx, dword [0x5c3648]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
mov dword [edx], 0xffffffff
cmp eax, 3
jne 0x4278e3
mov edx, dword [ebp + 0x28]
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x14], 7
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
jbe 0x427899
mov esi, dword [esi]
mov ebx, dword [ebx]
push 0
push edx
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push ecx
push eax
push edi
push esi
call dword [sym.imp.kernel32.dll_CreateNamedPipeW]
cmp eax, 0xffffffff
je 0x4278f4
mov esi, eax
lea eax, [ebp - 0x14]
mov dword [eax], 0xffffffff
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
xor edi, edi
push 3
push edi
push edi
lea ecx, [ebp - 0x14]
push ecx
push ebx
push esi
push eax
call dword [sym.imp.kernel32.dll_DuplicateHandle]
cmp eax, 1
sbb edi, edi
lea eax, [ebp - 0x14]
or edi, dword [eax]
jmp 0x4278f7
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f2990
mov eax, 5
jmp 0x427913
xor edi, edi
dec edi
mov eax, dword [ebp + 0x2c]
mov dword [eax], edi
xor eax, eax
cmp edi, 0xffffffff
sete al
lea esi, [eax + eax*4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f2990
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x427c10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x54
mov ecx, dword [ebp + 8]
mov eax, dword [0x5c3648]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ecx - 5]
mov edi, 5
cmp eax, 1
ja 0x427d51
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
movups xmmword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x54], 0x44
cmp dword [eax + 0x14], 7
jbe 0x427c5f
mov eax, dword [eax]
mov esi, dword [ebp + 0x10]
push eax
call fcn.004dfcf2
add esp, 4
mov edx, dword [edi + 0x10]
cmp dword [edi + 0x14], 7
jbe 0x427c76
mov edi, dword [edi]
mov ebx, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0xc]
test edx, edx
cmove edi, edx
cmp dword [esi + 0x14], 7
jbe 0x427c89
mov esi, dword [esi]
mov ecx, dword [ecx]
mov dword [ebp - 0x5c], ecx
sub esp, 0x28
mov dword [esp + 0x24], ebx
lea ecx, [ebp - 0x54]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edi
xorps xmm0, xmm0
movups xmmword [esp + 8], xmm0
mov dword [ebp - 0x58], eax
mov dword [esp + 4], eax
mov dword [esp], esi
mov dword [esp + 0x18], 0
call dword [sym.imp.kernel32.dll_CreateProcessW]
mov edi, 5
test eax, eax
je 0x427d41
mov eax, dword [ebp + 8]
cmp eax, 6
mov eax, 0x1fffff
mov esi, 0x101c01
cmove esi, eax
mov eax, dword [ebx]
mov dword [ebp - 0x60], eax
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push 1
push 0
push esi
push ebx
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
push eax
call dword [sym.imp.kernel32.dll_DuplicateHandle]
test eax, eax
je 0x427d38
cmp dword [ebp + 8], 6
mov esi, 0x100c43
mov eax, 0x1fffff
cmove esi, eax
mov edi, dword [ebx + 4]
add ebx, 4
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push 1
push 0
push esi
push ebx
push dword [ebp - 0x5c]
push edi
push eax
call dword [sym.imp.kernel32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea edi, [ecx + ecx*4]
jmp 0x427d41
push dword [ebx + 4]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x427d51
push eax
call fcn.004dfcf2
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f2990
mov eax, edi
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x427d66
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, dword [ebp + 0x20]
mov ebx, dword [ebp + 8]
movups xmm0, xmmword [ebp + 0xc]
mov eax, dword [ebp + 0x1c]
xor edx, edx
mov dword [edi], edx
mov ecx, dword [ebx]
sub esp, 0x1c
mov dword [esp + 0x18], eax
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], edx
mov dword [esp], ecx
call dword [sym.imp.kernel32.dll_CreateRemoteThread]
test eax, eax
je 0x427dc5
mov esi, eax
mov ebx, dword [ebx]
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push 3
xor ecx, ecx
push ecx
push ecx
push edi
push ebx
push esi
push eax
call dword [sym.imp.kernel32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea eax, [ecx + ecx*4]
pop esi
pop edi
pop ebx
pop ebp
ret
pop esi
pop edi
pop ebx
pop ebp
jmp dword [sym.imp.kernel32.dll_GetLastError]