joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409e80
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x124
mov eax, dword [0x4b5040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x4c4410]
mov ecx, dword [0x4b80e0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x409ecd
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00461246
mov eax, 0x4c440c
add esp, 0x124
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4c4410
call fcn.0045e453
add esp, 4
cmp dword [0x4c4410], 0xffffffff
jne 0x409eb3
lea edi, [ebp - 0x128]
xor esi, esi
push 0x118
push esi
push edi
call fcn.004628e0
add esp, 0xc
mov dword [edi - 4], 0x11c
lea ebx, [ebp - 0x12c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea edi, [ebp - 0x130]
mov dword [edi], esi
push edi
push esi
push esi
push dword [ebx + 8]
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetProductInfo]
push 0x54
call fcn.0045e423
add esp, 4
mov esi, eax
mov edi, dword [edi]
mov eax, dword [0x4c4440]
mov ecx, dword [0x4b80e0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x409f79
lea edx, [ebp - 0x12c]
mov ecx, esi
push edi
call fcn.00417530
add esp, 4
mov dword [0x4c440c], esi
push 0x4c4410
call fcn.0045e4a2
add esp, 4
jmp 0x409eb3
push 0x4c4440
call fcn.0045e453
add esp, 4
cmp dword [0x4c4440], 0xffffffff
jne 0x409f50
xorps xmm0, xmm0
movups xmmword [0x4c442c], xmm0
movups xmmword [0x4c441c], xmm0
mov dword [0x4c443c], 0
push 0x4c441c
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x4c4440
call fcn.0045e4a2
add esp, 4
jmp 0x409f50

Function at 0x40a990
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.00461670
mov esi, ecx
mov eax, dword [0x4b5040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ebx, 0x800
lea edi, [ebp - 0x810]
push ebx
push 0xff
push edi
call fcn.004628e0
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 0x40aa1f
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1014]
cmp eax, 1
jne 0x40aa23
mov ecx, esi
push edi
call fcn.0040aa80
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00461246
mov eax, esi
add esp, 0x100c
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov esi, eax
jmp 0x40aa06
cmp eax, 2
jne 0x40aa65
lea ebx, [ebp - 0x1010]
push 0x800
push 0xff
push ebx
call fcn.004628e0
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 0x40aa6c
mov ecx, esi
push ebx
jmp 0x40a9ff
mov esi, 0x3f4
jmp 0x40aa06
mov esi, 0xea
jmp 0x40aa06
Function at 0x40e7d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x200c
call fcn.00461670
mov eax, dword [0x4b5040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x4b8098]
cmp eax, 0xffffffff
je 0x40e85b
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test bl, 3
je 0x40e85b
and ebx, 0xfffffffc
lea eax, [ebp - 0x810]
push 0x800
push ebx
push eax
call fcn.00462360
add esp, 0xc
mov ecx, dword [0x4b8098]
lea eax, [ebp - 0x80f]
push eax
mov dword [ebp - 0x2014], ecx
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test ebx, ebx
je 0x40e841
push ebx
call fcn.0045fb6f
add esp, 4
mov ecx, 0x101
jmp 0x40e88b
call fcn.00486740
push 2
push dword [ebp - 0x2014]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00461246
add esp, 0x200c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, esi
shr eax, 0x15
mov byte [eax + 0x4c3c00], 1
jmp 0x40e8d7
mov ecx, dword [ebp - 0x2018]
dec ecx
je 0x40e848
test al, 1
je 0x40e84d
mov dword [ebp - 0x2018], ecx
mov eax, dword [0x4c7034]
mov ecx, dword [0x4b80e0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40e9eb
mov esi, dword [0x4c7030]
mov edi, esi
shr edi, 0xe
mov ebx, esi
shr ebx, 0x13
mov eax, dword [ebx*4 + 0x4bbc00]
bt eax, edi
jae 0x40e870
push esi
call fcn.00401010
add esp, 4
test esi, esi
je 0x40ea2c
push esi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x40e8f1
push esi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
push 0x1000
push 0x4c6030
lea eax, [ebp - 0x1810]
push eax
call fcn.00462360
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [ebx*4 + 0x4bbc00]
bt eax, edi
jae 0x40e926
push esi
call fcn.004012c0
add esp, 4
push 0x800
push 0xff
lea eax, [ebp - 0x2010]
push eax
call fcn.004628e0
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x1804]
mov edx, dword [ecx]
mov dword [ebp + eax*8 - 0x2010], edx
mov word [ebp + eax*8 - 0x200c], ax
inc eax
add ecx, 0x10
cmp eax, 0x100
jne 0x40e947
lea ecx, [ebp - 0x2010]
lea edx, [ebp - 0x1810]
push 1
push 0x10
call fcn.0043f690
add esp, 8
mov esi, 4
xor eax, eax
jmp 0x40e9ac
mov dword [ebp + edx*8 - 0x810], 0
call dword [0x4b1788]
push edi
call ecx
add esp, 4
mov al, 1
add esi, 8
cmp esi, 0x804
je 0x40e87e
movzx edx, word [ebp + esi - 0x2010]
mov edi, dword [ebp + edx*8 - 0x810]
test edi, edi
je 0x40e99d
mov ecx, edx
shl ecx, 4
cmp dword [ebp + ecx - 0x1810], 0
je 0x40e99d
mov ebx, dword [ebp + edx*8 - 0x80c]
cmp ebx, dword [ebp + ecx - 0x1808]
jne 0x40e99d
mov ecx, dword [ebp + ecx - 0x180c]
test ecx, ecx
jne 0x40e984
jmp 0x40e99d
push 0x4c7034
call fcn.0045e453
add esp, 4
cmp dword [0x4c7034], 0xffffffff
jne 0x40e8b2
push 4
call fcn.0045e423
add esp, 4
mov dword [eax], 0
mov dword [0x4c7030], eax
push 0x4c7034
call fcn.0045e4a2
add esp, 4
jmp 0x40e8b2
int3
Function at 0x40ff70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x436780
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword fs:[0], eax
test byte [ecx + 4], 1
jne 0x40ffe1
movzx ebx, byte [ebp + 0x18]
mov eax, dword [esi]
mov edi, dword [eax + 0x18]
mov ecx, edi
call dword [0x4b1788]
movsx eax, byte [ebp + 0x14]
mov ecx, esi
push ebx
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push esi
call edi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x20], eax
cmp eax, 0x4b9360
jne 0x410144
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x30]
push 0x4b9448
call fcn.0045cd80
mov esi, eax
cmp dword [ebp - 0x20], 0x4b9360
je 0x410047
xor eax, eax
dec eax
mov ecx, dword [ebp - 0x20]
lock xadd dword [ecx + 4], eax
test eax, eax
jne 0x410047
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, edi
call dword [0x4b1788]
mov ecx, ebx
call edi
xor eax, eax
dec eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov ecx, dword [esi]
mov dl, byte [ebp + 0x18]
xor dl, 1
movzx edx, dl
mov edi, dword [ecx + edx*4 + 0x14]
mov dword [ebp - 0x10], eax
mov ecx, edi
call dword [0x4b1788]
mov ecx, esi
lea eax, [ebp - 0x30]
push eax
call edi
movzx eax, byte [ebp - 0x25]
mov edx, eax
test al, al
jns 0x410082
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
test edx, edx
je 0x41011b
test al, al
lea eax, [ebp - 0x30]
cmovns ecx, eax
mov dword [ebp - 0x20], ecx
jmp 0x4100f8
movzx edi, al
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
mov esi, dword [eax + 0x30]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, esi
call dword [0x4b1788]
mov dword [ebp - 0x10], 1
mov ecx, ebx
push edi
call esi
xor ecx, ecx
cmp eax, 0xffffffff
je 0x4100ca
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x24], ecx
jmp 0x4100d6
mov dword [ebp - 0x24], 0
movzx eax, byte [ebp - 0x25]
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x30]
mov esi, eax
test al, al
jns 0x4100eb
mov esi, dword [ebp - 0x2c]
mov edx, ecx
add edx, esi
mov esi, dword [ebp - 0x20]
inc esi
mov dword [ebp - 0x20], esi
cmp esi, edx
je 0x41011b
cmp dword [ebp - 0x24], 0
je 0x4100cf
mov eax, dword [ebp - 0x20]
mov al, byte [eax]
mov edx, dword [ebp - 0x24]
mov ecx, dword [edx + 0x18]
cmp ecx, dword [edx + 0x1c]
je 0x41009a
lea edx, [ecx + 1]
mov esi, dword [ebp - 0x24]
mov dword [esi + 0x18], edx
mov byte [ecx], al
jmp 0x4100d6
shr al, 7
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 0x24]
mov dword [edx], esi
test al, al
je 0x410133
push ecx
call fcn.0045e41e
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
jmp 0x40ffd7
mov eax, dword [ebp - 0x20]
lock inc dword [eax + 4]
jmp 0x40fffe
Function at 0x411b00
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov ebx, ecx
mov eax, dword [0x4b5040]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor esi, esi
lea edi, [ebp - 0x1c]
mov dword [edi + 8], esi
xorps xmm0, xmm0
movsd qword [edi], xmm0
push edi
mov dword [ebp - 0x20], edx
push edx
push ecx
call fcn.0044e960
add esp, 0xc
cmp byte [edi + 0xb], 0
jns 0x411b3b
mov edi, dword [ebp - 0x1c]
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
cmp byte [ebp - 0x11], 0
jns 0x411b57
push dword [ebp - 0x1c]
call fcn.0045e41e
add esp, 4
cmp dword [ebp + 8], 0
je 0x411c08
test esi, esi
je 0x411c08
lea eax, [esi + esi]
xor ecx, ecx
dec ecx
test esi, esi
cmovns ecx, eax
push ecx
call fcn.0045fd2e
add esp, 4
mov edi, eax
xorps xmm0, xmm0
mov eax, ebx
lea ebx, [ebp - 0x1c]
movsd qword [ebx], xmm0
mov dword [ebx + 8], 0
push ebx
push dword [ebp - 0x20]
push eax
call fcn.0044e960
add esp, 0xc
cmp byte [ebx + 0xb], 0
jns 0x411ba8
mov ebx, dword [ebp - 0x1c]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [ebp - 0x11], 0
jns 0x411bc2
push dword [ebp - 0x1c]
call fcn.0045e41e
add esp, 4
push edi
call fcn.0045fe10
add esp, 4
lea ecx, [ebp - 0x1c]
push eax
push edi
push ecx
call fcn.0044f6a0
add esp, 0xc
mov ebx, dword [ebp + 8]
cmp byte [ebx + 0xb], 0
jns 0x411bec
push dword [ebx]
call fcn.0045e41e
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebx + 8], eax
movsd xmm0, qword [ebp - 0x1c]
movsd qword [ebx], xmm0
test edi, edi
je 0x411c08
push edi
call fcn.0045fb6f
add esp, 4
test esi, esi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00461246
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4131a0
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
jne 0x413279
cmp dword [esi], 0
jne 0x413279
cmp dword [esi + 0xc], 0
jne 0x413279
xor eax, eax
cmp dword [esi + 4], 0
jne 0x413279
mov ebx, dword [edi]
cmp eax, ebx
je 0x413203
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x413249
lea eax, [ebx + 1]
cmp eax, 2
jb 0x4131f9
mov dword [esi], ebx
call fcn.00444d70
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 4]
cmp dword [esi + 4], ebx
je 0x413236
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi + 4]
inc eax
cmp eax, 2
jae 0x413260
lea eax, [ebx + 1]
cmp eax, 2
jb 0x41322c
mov dword [esi + 4], ebx
call fcn.00444d70
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
call fcn.00444d70
push dword [esi]
call fcn.00457db0
add esp, 4
mov dword [esi], 0
jmp 0x4131ea
call fcn.00444d70
push dword [esi + 4]
call fcn.00457db0
add esp, 4
mov dword [esi + 4], 0
jmp 0x41321c
mov ecx, esi
call fcn.00499c10
mov eax, dword [esi]
jmp 0x4131d4
Function at 0x415a00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x228
mov eax, dword [0x4b5040]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x21a]
push 0x20a
push 0xff
push ebx
call fcn.004628e0
add esp, 0xc
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
dec esi
cmp esi, 0x102
ja 0x415abb
push ebx
call fcn.0045fe10
add esp, 4
lea edi, [ebp - 0x234]
mov ecx, edi
push eax
push ebx
call fcn.00454ad0
lea eax, [ebp - 0x228]
mov ecx, edi
mov edi, dword [ebp + 8]
push eax
call fcn.00415ae0
cmp byte [edi + 0xb], 0
jns 0x415a7f
push dword [edi]
call fcn.0045e41e
add esp, 4
mov eax, dword [ebp - 0x220]
mov dword [edi + 8], eax
movsd xmm0, qword [ebp - 0x228]
movsd qword [edi], xmm0
mov byte [ebp - 0x21d], 0
mov word [ebp - 0x228], 0
cmp byte [ebp - 0x229], 0
jns 0x415abb
push dword [ebp - 0x234]
call fcn.0045e41e
add esp, 4
cmp esi, 0x103
setb bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00461246
mov eax, ebx
add esp, 0x228
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x415d10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x218
mov esi, dword [ebp + 8]
mov eax, dword [0x4b5040]
xor eax, ebp
mov dword [ebp - 0xc], eax
lea edi, [ebp - 0x214]
push 0x208
push 0xff
push edi
call fcn.004628e0
sub esp, 8
mov dword [esp + 0x10], edi
movaps xmm0, xmmword [0x4a73d0]
movups xmmword [esp], xmm0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x415d8c
cmp word [ebp - 0x214], 0
je 0x415d8c
push edi
call fcn.0045fe10
add esp, 4
mov ecx, esi
push eax
push edi
call fcn.00454ad0
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00461246
mov eax, esi
add esp, 0x218
pop esi
pop edi
pop ebp
ret
xorps xmm0, xmm0
lea eax, [ebp - 0x220]
movsd qword [eax], xmm0
mov dword [eax + 8], 0
push eax
call fcn.00415a00
add esp, 4
test al, al
jne 0x415dbd
mov ecx, esi
push 3
push 0x4ad1d4
call fcn.00454ad0
jmp 0x415de7
mov eax, dword [ebp - 0x218]
mov dword [esi + 8], eax
movsd xmm0, qword [ebp - 0x220]
movsd qword [esi], xmm0
xorps xmm0, xmm0
movsd qword [ebp - 0x220], xmm0
mov dword [ebp - 0x218], 0
cmp byte [ebp - 0x215], 0
jns 0x415d76
push dword [ebp - 0x220]
call fcn.0045e41e
add esp, 4
jmp 0x415d76
Function at 0x416be0
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x218
mov eax, dword [0x4b5040]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
dec eax
lea esi, [ebp - 0x220]
mov dword [esi + 4], eax
mov dword [esi], eax
push esi
call sub.ntdll.dll_RtlFormatCurrentUserKeyPath
test eax, eax
js 0x416d2d
mov dword [ebp - 0x224], eax
mov ebx, 0xff
mov edi, 0x4c48ca
push ebx
push dword [ebp - 0x21c]
push edi
call fcn.0046045f
add esp, 0xc
push edi
call fcn.0045fe10
add esp, 4
sub ebx, eax
push ebx
push 0x4ad1d8
push edi
call fcn.0046045f
add esp, 0xc
push esi
call sub.ntdll.dll_RtlFreeUnicodeString
lea esi, [ebp - 0x218]
push 0x208
push 0
push esi
call fcn.004628e0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
push 0x104
push esi
push str.PROGRAMFILES
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x416c9f
push eax
push esi
push edi
call fcn.00460425
add esp, 0xc
test eax, eax
je 0x416d49
push 0x104
push esi
push 0x4ad418
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x416cca
push eax
push esi
push edi
call fcn.00460425
add esp, 0xc
test eax, eax
je 0x416d49
xor eax, eax
mov byte [0x4c44c9], al
mov dword [ebp - 0x218], 0
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x4a9f37
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x416d50
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
mov ecx, edi
call dword [0x4b1788]
push esi
push ebx
call edi
test eax, eax
je 0x416d50
cmp dword [ebp - 0x218], 0
setne cl
mov eax, dword [ebp - 0x224]
mov byte [0x4c4aca], cl
mov byte [0x4c44c8], 1
test eax, eax
setns bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00461246
mov eax, ebx
add esp, 0x218
pop esi
pop edi
pop ebx
pop ebp
ret
mov al, 1
jmp 0x416ccc
xor ecx, ecx
jmp 0x416d1a
Function at 0x41a960
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, ecx
mov ebx, dword [ebp + 8]
mov dword [ecx], 0
test ebx, ebx
je 0x41a99e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x41a9bc
lea eax, [ebx + 1]
cmp eax, 2
jb 0x41a997
mov dword [esi], ebx
call fcn.00444d70
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp eax, ebx
je 0x41aa31
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.00444d70
mov eax, dword [esi]
mov dword [ebp - 0x18], eax
cmp dword [0x4c4444], 0
je 0x41a9f5
mov eax, dword [0x4c4444]
mov dword [ebp - 0x14], eax
mov eax, dword [eax]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
call dword [0x4b1788]
mov ecx, dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [ebp - 0x10]
mov dword [esi], 0
jmp 0x41a988
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x4aa4ee
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41aa34
mov ecx, eax
cmp eax, sym.chrome_pwa_launcher.exe_GetHandleVerifier
je 0x41aa2b
call dword [0x4b1788]
call ecx
push 0
push eax
call fcn.00413290
add esp, 8
jmp 0x41a9cf
push 1
push 0
jmp 0x41aa21
int3
xor eax, eax
push eax
jmp 0x41aa20

Function at 0x41aad0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov edi, dword [ebp + 8]
mov eax, dword [0x4b5040]
xor eax, ebp
mov dword [esp + 0x48], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x10]
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
mov ebx, esp
push 0x233
push str....._base_files_file_util_win.cc
push str.DirectoryExists
push ebx
call fcn.00440e50
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.00447150
cmp byte [edi + 0xb], 0
jns 0x41ab2c
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
setne al
and ebx, 0x10
shr ebx, 4
and bl, al
mov ecx, esi
call fcn.00449c10
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.00461246
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x41ab60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x260
mov eax, dword [0x4b5040]
xor eax, ebp
mov dword [esp + 0x258], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x20]
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea ebx, [esp + 0x50]
push 0x42a
push str....._base_files_file_util_win.cc
push 0x4abb31
push ebx
call fcn.00440e50
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.00447150
lea esi, [esp + 0x52]
push 0x206
push 0xff
push esi
call fcn.004628e0
add esp, 0xc
mov word [esi - 2], 0
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
dec esi
cmp esi, 0x103
ja 0x41ac52
push ebx
call fcn.0045fe10
add esp, 4
lea edi, [esp + 8]
mov ecx, edi
push eax
push ebx
call fcn.00454ad0
lea eax, [esp + 0x14]
mov ecx, edi
mov edi, dword [ebp + 8]
push eax
call fcn.00415ae0
cmp byte [edi + 0xb], 0
jns 0x41ac22
push dword [edi]
call fcn.0045e41e
add esp, 4
mov eax, dword [esp + 0x1c]
mov dword [edi + 8], eax
movq xmm0, qword [esp + 0x14]
movq qword [edi], xmm0
mov byte [esp + 0x1f], 0
mov word [esp + 0x14], 0
cmp byte [esp + 0x13], 0
jns 0x41ac52
push dword [esp + 8]
call fcn.0045e41e
add esp, 4
cmp esi, 0x104
setb bl
lea ecx, [esp + 0x20]
call fcn.00449c10
mov ecx, dword [esp + 0x258]
xor ecx, ebp
call fcn.00461246
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x41be00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 8
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x4b5040]
xor ecx, ebp
mov dword [ebp - 0xc], ecx
cmp eax, 3
je 0x41be2e
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00461246
add esp, 8
pop esi
pop edi
pop ebp
ret 0xc
lea eax, [ebp - 0x10]
mov dword [eax], 0x40f830
push 0
push eax
push 0x40f810
push 0x4c6010
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x41be8e
cmp dword [0x4c6014], 0
jne 0x41be1b
push dword [0x4c6018]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41be1b
mov esi, eax
mov edi, 0x4c601c
push edi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
push 0
push esi
push 0x4a82b0
call fcn.00404790
add esp, 0xc
jmp 0x41be1b
call fcn.0046f6a4
int3
Function at 0x41c2c0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov al, byte [ebp + 0x10]
mov edx, dword [0x4b5040]
xor edx, ebp
mov dword [esp + 0x20], edx
mov dword [esi], ecx
mov dword [esi + 4], edi
mov byte [esi + 8], al
mov dword [esi + 0xc], 0
xor edi, edi
dec edi
mov ebx, esp
mov dword [ebx + 4], edi
mov dword [ebx], edi
push 8
push ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x41c3f0
movsd xmm0, qword [esp]
movsd qword [esi + 0x10], xmm0
mov dword [esp + 4], edi
mov dword [esp], edi
push 8
push ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x41c3f3
movq xmm0, qword [esp]
movq qword [esi + 0x18], xmm0
mov eax, dword [0x4c84c0]
mov ecx, dword [0x4b80e0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x41c38e
mov ebx, dword [ebp + 0xc]
lea eax, [ebx*8]
xor edi, edi
mov ecx, 0x4c7080
push edi
push eax
call fcn.00406c40
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
test ebx, ebx
je 0x41c3f6
mov ecx, dword [esp + 0x20]
xor ecx, ebp
call fcn.00461246
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
push 0x4c84c0
call fcn.0045e453
add esp, 4
cmp dword [0x4c84c0], 0xffffffff
jne 0x41c352
pcmpeqd xmm0, xmm0
movdqu xmmword [esp + 4], xmm0
mov dword [esp + 0x14], 0xffffffff
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov byte [esp + 0x10], al
mov byte [esp + 0x14], al
mov dword [esp + 0x18], eax
mov dword [esp], eax
mov byte [esp + 4], al
mov ecx, 0x4c7080
push ebx
call fcn.00440af0
push 0x4c84c0
call fcn.0045e4a2
add esp, 4
jmp 0x41c352
int3
int3
int3