joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46bfb8
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x12c
mov edi, dword [ebp + 8]
mov al, byte [ebp + 0xc]
mov ecx, dword [0x4e3014]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
xor ecx, ecx
dec ecx
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x130], ecx
test al, al
je 0x46c099
lea ebx, [ebp - 0x120]
xor esi, esi
push 0x110
push esi
push ebx
call fcn.0049bea0
add esp, 0xc
mov dword [ebx - 0xc], 0x11c
sub esp, 0x10
movaps xmm0, xmmword [0x4d83f0]
movups xmmword [esp], xmm0
mov ebx, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
call ebx
mov ecx, 3
push ecx
push 1
push edx
push eax
call ebx
mov ecx, 3
push ecx
push 0x20
push edx
push eax
call ebx
lea ecx, [ebp - 0x120]
mov dword [ecx - 8], 6
mov dword [ecx - 4], esi
mov word [ecx + 0x108], 0
lea ecx, [ebp - 0x12c]
push edx
push eax
push 0x23
push ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov dword [ebp - 0x138], 0xc
test eax, eax
je 0x46c082
push 0
call fcn.0046c0e9
add esp, 4
mov esi, eax
lea eax, [ebp - 0x138]
mov dword [eax + 4], esi
mov dword [eax + 8], 1
mov ecx, 0x80003
jmp 0x46c0a0
xor eax, eax
mov ecx, 3
cmp byte [edi + 0xb], 0
jns 0x46c0a8
mov edi, dword [edi]
sub esp, 0x20
mov dword [esp + 0x1c], eax
movaps xmm0, xmmword [0x4d8400]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], ecx
mov dword [esp], edi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov esi, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00499333
mov eax, esi
add esp, 0x12c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x46c578
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xa0]
mov eax, dword [eax + 0xc]
mov ecx, dword fs:[0x18]
cmp eax, dword [ecx + 0x24]
sete al
pop ebp
ret
Function at 0x46ce40
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, ecx
mov eax, dword [ecx + 0x1174]
mov ebx, dword [ecx + 0x1178]
add ebx, eax
mov eax, dword [ecx + 0x116c]
mov ecx, ebx
sub ecx, eax
cmp ecx, 0x40000001
jb 0x46ce76
push dword [ebp + 8]
call fcn.0047c070
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
mov eax, dword [esp + 0xc]
test eax, eax
mov ecx, 0x40000000
mov edi, 0xaf000000
cmove edi, ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x54], 0x365f776f
mov dword [esp + 0x50], 0x775f7369
lea eax, [esp + 0x50]
push eax
call fcn.00410910
add esp, 4
cmp ebx, edi
jbe 0x46ced6
push ebx
call fcn.0047c0a0
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], 0
mov dword [esp + 0x44], 0x657a69
mov dword [esp + 0x40], 0x735f6176
lea eax, [esp + 0x40]
push eax
call fcn.00410910
add esp, 4
mov eax, dword [esi + 0x117c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x34], 0x20200063
mov dword [esp + 0x30], 0x6f6c6c61
lea eax, [esp + 0x30]
push eax
call fcn.00410910
add esp, 4
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
mov eax, dword [esi + 0x116c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0x20007469
mov dword [esp + 0x10], 0x6d6d6f63
lea eax, [esp + 0x10]
push eax
call fcn.00410910
add esp, 4
mov esi, dword [ebp + 8]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0x20202000
mov dword [esp + 0x20], 0x657a6973
lea eax, [esp + 0x20]
push eax
call fcn.00410910
add esp, 4
mov ecx, dword [0x5f7f0c]
test ecx, ecx
je 0x46cfa9
call dword [section..00cfg]
push esi
call ecx
add esp, 4
push esi
call fcn.00459a50
int3
Function at 0x470510
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 [0x4e3014]
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 0x470578
mov eax, dword [ebp - 0x10]
add eax, 0xfffffffd
mov esi, 0x3f4
cmp eax, 1
ja 0x470578
cmp dword [ebp - 0x14], 4
jne 0x470578
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.00499333
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebp
ret 8

Function at 0x470590
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.00499c50
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [0x4e3014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x810]
push 0x800
push 0xff
push ebx
call fcn.0049bea0
add esp, 0xc
mov dword [ebp - 0x1014], 1
mov dword [ebp - 0x1018], 0x800
lea eax, [ebp - 0x1018]
lea ecx, [ebp - 0x1014]
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 0x470666
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1014]
cmp eax, 2
je 0x470619
mov edi, 0x3f4
cmp eax, 1
jne 0x470666
mov ecx, esi
push ebx
jmp 0x47065f
lea edi, [ebp - 0x1010]
push 0x800
push 0xff
push edi
call fcn.0049bea0
add esp, 0xc
push 0x400
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1018], eax
add eax, 0xfffffbff
mov edi, 0xea
cmp eax, 0xfffffc00
jb 0x470666
mov ecx, esi
lea eax, [ebp - 0x1010]
push eax
call fcn.00433afe
xor edi, edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00499333
mov eax, edi
add esp, 0x100c
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x470c90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x140c
call fcn.00499c50
mov eax, dword [0x4e3014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x4e70f4]
cmp eax, 0xffffffff
je 0x470dea
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test bl, 3
je 0x470dea
and ebx, 0xfffffffc
lea eax, [ebp - 0x810]
push 0x800
push ebx
push eax
call fcn.0049b920
add esp, 0xc
mov ecx, dword [0x4e70f4]
lea eax, [ebp - 0x80f]
push eax
mov dword [ebp - 0x1414], ecx
push ecx
call fcn.0047fcd0
add esp, 8
test ebx, ebx
je 0x470d0b
push ebx
call fcn.0049897c
add esp, 4
mov eax, dword [0x5f7d70]
mov ecx, dword [0x4e71b8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x470e0b
mov esi, dword [0x5f7d6c]
push esi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x470dff
lea eax, [ebp - 0x1410]
push 0xc00
push 0x5f716c
push eax
call fcn.0049b920
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov al, 1
mov ecx, 0x101
jmp 0x470d79
mov ecx, dword [ebp - 0x1418]
dec ecx
je 0x470dda
test al, 1
je 0x470dda
mov dword [ebp - 0x1418], ecx
xor edi, edi
lea ebx, [ebp - 0x1408]
xor eax, eax
jmp 0x470d9c
inc edi
add ebx, 0xc
cmp edi, 0x100
je 0x470d70
mov esi, dword [ebp + edi*8 - 0x810]
test esi, esi
je 0x470d90
cmp dword [ebx - 8], 0
je 0x470d90
mov ecx, dword [ebp + edi*8 - 0x80c]
cmp ecx, dword [ebx]
jne 0x470d90
mov ecx, dword [ebx - 4]
test ecx, ecx
je 0x470d90
mov dword [ebp + edi*8 - 0x810], 0
call dword [section..00cfg]
push esi
call ecx
add esp, 4
mov al, 1
jmp 0x470d90
push 2
push dword [ebp - 0x1414]
call fcn.0047fcd0
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00499333
add esp, 0x140c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
call fcn.00446340
jmp 0x470d41
push 0x5f7d70
call fcn.004989b7
add esp, 4
cmp dword [0x5f7d70], 0xffffffff
jne 0x470d2c
push 4
call fcn.0049890c
add esp, 4
mov esi, eax
mov ecx, eax
call fcn.00446330
mov dword [0x5f7d6c], esi
push 0x5f7d70
call fcn.00498a2d
add esp, 4
jmp 0x470d2c

Function at 0x470e50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4e70f4]
cmp eax, 0xffffffff
je 0x470e70
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 3
dec eax
cmp eax, 2
setb al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x470e80
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov eax, dword [0x4e70f4]
cmp eax, 0xffffffff
je 0x470e9d
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x470ea2
call fcn.00470fa0
mov eax, dword [0x5f7d70]
mov ecx, dword [0x4e71b8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x470f4d
mov edi, dword [0x5f7d6c]
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x470f44
mov ecx, dword [0x5f7168]
inc ecx
xor edx, edx
nop dword [eax]
lea eax, [ecx + edx]
movzx ebx, al
lea eax, [ebx + ebx*2]
cmp dword [eax*4 + 0x5f716c], 0
je 0x470efe
inc edx
cmp edx, 0x100
jne 0x470ee0
jmp 0x470f2e
lea eax, [eax*4 + 0x5f716c]
mov dword [eax], 1
lea eax, [ebx*4]
mov ecx, dword [ebp + 8]
mov dword [eax + eax*2 + 0x5f7170], ecx
mov dword [0x5f7168], ebx
mov dword [esi], ebx
mov eax, dword [eax + eax*2 + 0x5f7174]
mov dword [esi + 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp dword [esi], 0x100
jae 0x470f92
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov ecx, edi
call fcn.00446340
jmp 0x470ed4
push 0x5f7d70
call fcn.004989b7
add esp, 4
cmp dword [0x5f7d70], 0xffffffff
jne 0x470ec3
push 4
call fcn.0049890c
add esp, 4
mov edi, eax
mov ecx, eax
call fcn.00446330
mov dword [0x5f7d6c], edi
push 0x5f7d70
call fcn.00498a2d
add esp, 4
jmp 0x470ec3
int3

Function at 0x470fa0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x808
mov eax, dword [0x4e3014]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x810], 0xffffffff
mov ecx, dword [0x4e70f4]
mov dword [ebp - 0x810], ecx
cmp ecx, 0xffffffff
jne 0x471044
lea esi, [ebp - 0x810]
push esi
call fcn.0047fca0
add esp, 4
test al, al
je 0x4710c5
mov ecx, dword [ebp - 0x810]
cmp ecx, 0xffffffff
jne 0x471020
push esi
call fcn.0047fca0
add esp, 4
test al, al
je 0x4710c8
cmp dword [ebp - 0x810], 0xffffffff
je 0x4710c8
push 0xffffffffffffffff
call fcn.0047fcc0
add esp, 4
mov ecx, dword [ebp - 0x810]
mov eax, 0xffffffff
lock cmpxchg dword [0x4e70f4], ecx
je 0x471044
push ecx
call fcn.0047fcc0
add esp, 4
mov ecx, dword [0x4e70f4]
mov dword [ebp - 0x810], ecx
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x4710c2
lea edi, [ebp - 0x80c]
push 0x800
push 0
push edi
call fcn.0049bea0
add esp, 0xc
lea eax, [ebp - 0x809]
push eax
push dword [ebp - 0x810]
call fcn.0047fcd0
add esp, 8
push 0x800
call fcn.00498973
add esp, 4
mov esi, eax
push 0x800
push edi
push eax
call fcn.0049b920
add esp, 0xc
mov eax, esi
or eax, 3
push eax
push dword [ebp - 0x810]
call fcn.0047fcd0
add esp, 8
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00499333
mov eax, esi
add esp, 0x808
pop esi
pop edi
pop ebp
ret
int3
int3
int3
Function at 0x471ef0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
test ecx, ecx
je 0x471f28
mov edx, dword [ebp + 0xc]
xor esi, esi
nop word cs:[eax + eax]
movzx edi, al
movzx ebx, byte [edx + esi]
xor ebx, edi
shr eax, 8
xor eax, dword [ebx*4 + 0x4d8740]
inc esi
cmp ecx, esi
jne 0x471f10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x474590
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
movzx edx, byte [0x5f7dbc]
test dl, 1
jne 0x4745b6
test ecx, ecx
je 0x4745b4
push ecx
push eax
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x4745c1
pop ebp
ret
call fcn.00487500
pop ebp
jmp fcn.00483e40
int3
Function at 0x47d108
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov esi, dword [0x4e3014]
xor esi, ebp
mov dword [ebp - 8], esi
mov esi, 0x7fffffff
cmp edx, esi
cmovb esi, edx
lea edx, [ebp - 0xc]
mov dword [edx], 0xffffffff
push 0
push edx
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x47d151
mov esi, dword [ebp - 0xc]
cmp esi, 0xffffffff
jne 0x47d154
int3
xor esi, esi
dec esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00499333
mov eax, esi
add esp, 8
pop esi
pop ebp
ret

Function at 0x47d166
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [0x4e3014]
xor ecx, ebp
mov esi, 0x7fffffff
cmp eax, esi
cmovb esi, eax
mov dword [ebp - 0x10], ecx
lea eax, [ebp - 0x14]
mov ecx, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0xffffffff
push 0
push eax
push esi
push ebx
push edi
call ecx
test eax, eax
je 0x47d1ea
mov esi, ebx
mov ebx, dword [ebp - 0x14]
test ebx, ebx
jne 0x47d1d1
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
jne 0x47d1fc
mov ebx, esi
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov ecx, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x47d199
cmp ebx, 0xffffffff
je 0x47d201
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00499333
mov eax, ebx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x6d
setne bl
neg ebx
jmp 0x47d1d6
mov ebx, dword [ebp - 0x14]
jmp 0x47d1d6
int3

Function at 0x47d7db
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
sub esp, 0xac
mov esi, dword [ebp + 8]
mov eax, dword [0x4e3014]
xor eax, ebp
mov dword [ebp - 0xc], eax
xor ebx, ebx
push ebx
push ebx
push ebx
push esi
call fcn.0047d6ec
add esp, 0x10
or edx, eax
jne 0x47d85e
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov bl, 1
test eax, eax
jne 0x47d85e
push 2
call fcn.00451200
add esp, 4
test al, al
je 0x47d85c
call fcn.00451d20
lea esi, [ebp - 0xb4]
mov ecx, esi
push eax
push 2
push 0xfb
push str....._third_partycrashpadcrashpadutil_file_file_io_win.cc
call fcn.00451ec0
lea eax, [ebp - 0xac]
push 0xc
push 0x4d940a
push eax
call fcn.00414114
add esp, 0xc
mov ecx, esi
call fcn.00451f70
xor ebx, ebx
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00499333
mov eax, ebx
add esp, 0xac
pop esi
pop ebx
pop ebp
ret
Function at 0x47efea
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb8
mov edi, dword [ebp + 8]
mov eax, dword [0x4e3014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x47f00d
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47f039
mov ebx, eax
cmp byte [ebp + 0xc], 0
jne 0x47f02e
mov eax, ebx
and eax, 0x400
jne 0x47f0df
and ebx, 0x10
shr ebx, 4
jmp 0x47f0e1
push 2
call fcn.00451200
add esp, 4
test al, al
je 0x47f0df
call fcn.00451d20
lea ecx, [ebp - 0xb8]
push eax
push 2
push 0x82
push str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
call fcn.00451ec0
lea eax, [ebp - 0xb0]
push 0x12
push str.GetFileAttributes
push eax
call fcn.00414114
add esp, 0xc
mov esi, eax
movzx eax, byte [edi + 0xb]
test al, al
jns 0x47f08d
mov eax, dword [edi + 4]
mov edi, dword [edi]
lea ebx, [ebp - 0xc4]
push eax
push edi
push ebx
call fcn.0043d0d0
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x47f0b2
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push esi
call fcn.00414114
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x47f0d4
push dword [ebp - 0xc4]
call fcn.0049893c
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.00451f70
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00499333
mov eax, ebx
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb8
mov edi, dword [ebp + 8]
mov eax, dword [0x4e3014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x47f11b
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47f134
test eax, 0x410
sete bl
jmp 0x47f1d9
push 2
call fcn.00451200
add esp, 4
test al, al
je 0x47f1d7
call fcn.00451d20
lea ecx, [ebp - 0xb8]
push eax
push 2
push 0x75
push str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
call fcn.00451ec0
lea eax, [ebp - 0xb0]
push 0x12
push str.GetFileAttributes
push eax
call fcn.00414114
add esp, 0xc
mov esi, eax
movzx eax, byte [edi + 0xb]
test al, al
jns 0x47f185
mov eax, dword [edi + 4]
mov edi, dword [edi]
lea ebx, [ebp - 0xc4]
push eax
push edi
push ebx
call fcn.0043d0d0
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x47f1aa
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push esi
call fcn.00414114
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x47f1cc
push dword [ebp - 0xc4]
call fcn.0049893c
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.00451f70
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00499333
mov eax, ebx
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x47f1f0
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb8
mov esi, dword [ebp + 8]
mov eax, dword [0x4e3014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x47f213
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47f246
and eax, 0x410
cmp eax, 0x410
jne 0x47f246
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00499333
mov ecx, esi
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.0047f320
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x47f250
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov bl, 1
test eax, eax
jne 0x47f309
push 2
call fcn.00451200
add esp, 4
test al, al
je 0x47f307
call fcn.00451d20
lea ecx, [ebp - 0xb8]
push eax
push 2
push 0x95
push str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
call fcn.00451ec0
lea eax, [ebp - 0xb0]
push 0xb
push str.DeleteFile
push eax
call fcn.00414114
add esp, 0xc
mov edi, eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x47f2b5
mov eax, dword [esi + 4]
mov esi, dword [esi]
lea ebx, [ebp - 0xc4]
push eax
push esi
push ebx
call fcn.0043d0d0
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x47f2da
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push edi
call fcn.00414114
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x47f2fc
push dword [ebp - 0xc4]
call fcn.0049893c
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.00451f70
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00499333
mov eax, ebx
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x47f320
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xbc
mov edi, ecx
mov eax, dword [0x4e3014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x47f342
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test eax, eax
jne 0x47f3ff
push 2
call fcn.00451200
add esp, 4
test al, al
je 0x47f3ff
call fcn.00451d20
lea ecx, [ebp - 0xb8]
push eax
push 2
push 0x30
push str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
call fcn.00451ec0
lea eax, [ebp - 0xb0]
push 0x10
push str.RemoveDirectory
push eax
call fcn.00414114
add esp, 0xc
movzx ecx, byte [edi + 0xb]
test cl, cl
mov dword [ebp - 0xc8], eax
jns 0x47f3a8
mov ecx, dword [edi + 4]
mov edi, dword [edi]
lea ebx, [ebp - 0xc4]
push ecx
push edi
push ebx
call fcn.0043d0d0
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x47f3cd
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push dword [ebp - 0xc8]
call fcn.00414114
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x47f3f4
push dword [ebp - 0xc4]
call fcn.0049893c
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.00451f70
test esi, esi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00499333
mov eax, ebx
add esp, 0xbc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x47f848
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047f1f0

Function at 0x47fc20
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [ebp + 0xc]
cmp eax, 3
je 0x47fc31
test eax, eax
jne 0x47fc81
test eax, eax
jne 0x47fc47
mov ecx, dword [0x5f7f44]
test ecx, ecx
je 0x47fc47
call dword [section..00cfg]
call ecx
cmp dword [0x5f7f3c], 0
je 0x47fc81
mov esi, dword [0x5f7f40]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test edi, edi
jne 0x47fc87
test esi, esi
je 0x47fc81
mov ecx, dword [0x5f7f3c]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
pop esi
pop edi
pop ebp
ret 0xc
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x47fc6f
jmp 0x47fc81
Function at 0x483c90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov edi, dword [ebp + 0x10]
mov eax, dword [0x4e3014]
xor eax, ebp
mov dword [esp + 0x28], eax
test edi, edi
je 0x483e2d
mov ecx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
cmp edx, 0x20
setae al
lea ebx, [edx - 0x20]
cmp ebx, esi
setae ah
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
cmp edx, esi
jb 0x483d62
and al, ah
jne 0x483d62
cmp edi, 0x10
jb 0x483dcb
nop dword [eax]
mov ebx, edx
call dword [section..00cfg]
push dword [ebp + 0x14]
lea eax, [esp + 0x14]
push eax
push ebx
call dword [ebp + 0x1c]
mov edx, ebx
add esp, 0xc
mov ecx, dword [ebx]
mov eax, dword [ebp + 0x18]
mov ebx, dword [eax]
xor ebx, dword [esp + 0x10]
mov dword [esi], ebx
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov ebx, dword [eax + 4]
xor ebx, dword [esp + 0x14]
mov dword [esi + 4], ebx
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov ebx, dword [eax + 8]
xor ebx, dword [esp + 0x18]
mov dword [esi + 8], ebx
mov dword [eax + 8], ecx
mov ecx, dword [edx + 0xc]
mov ebx, dword [eax + 0xc]
xor ebx, dword [esp + 0x1c]
mov dword [esi + 0xc], ebx
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp + 0x1c]
add edi, 0xfffffff0
add edx, 0x10
add esi, 0x10
cmp edi, 0xf
ja 0x483cf0
test edi, edi
jne 0x483dcb
jmp 0x483e2d
mov ebx, dword [ebp + 0x18]
cmp edi, 0x10
jb 0x483dbd
nop word [eax + eax]
mov dword [esp + 0xc], edx
mov ecx, dword [ebp + 0x1c]
call dword [section..00cfg]
push dword [ebp + 0x14]
push esi
push dword [esp + 0x14]
call ecx
add esp, 0xc
mov eax, dword [ebx]
xor dword [esi], eax
mov eax, dword [ebx + 4]
xor dword [esi + 4], eax
mov eax, dword [ebx + 8]
xor dword [esi + 8], eax
mov eax, dword [ebx + 0xc]
xor dword [esi + 0xc], eax
add edi, 0xfffffff0
mov ebx, dword [esp + 0xc]
lea edx, [ebx + 0x10]
add esi, 0x10
cmp edi, 0xf
ja 0x483d70
lea eax, [edx - 0x10]
mov ebx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
jmp 0x483dbf
mov eax, ebx
movdqu xmm0, xmmword [eax]
movdqu xmmword [ebx], xmm0
test edi, edi
je 0x483e2d
mov ebx, edx
call dword [section..00cfg]
lea eax, [esp + 0x10]
push dword [ebp + 0x14]
push eax
mov dword [esp + 0x14], ebx
push ebx
call ecx
add esp, 0xc
lea eax, [edi - 1]
xor ecx, ecx
mov ebx, dword [ebp + 0x18]
nop dword [eax]
mov edx, dword [esp + 0xc]
movzx edx, byte [edx + ecx]
mov dh, byte [ebx + ecx]
xor dh, byte [esp + ecx + 0x10]
mov byte [esi + ecx], dh
mov byte [ebx + ecx], dl
inc ecx
cmp edi, ecx
jne 0x483df0
cmp eax, 0xe
mov ecx, dword [esp + 0xc]
ja 0x483e2d
nop word cs:[eax + eax]
movzx eax, byte [ecx + edi]
mov byte [ebx + edi], al
inc edi
cmp edi, 0x10
jne 0x483e20
mov ecx, dword [esp + 0x28]
xor ecx, ebp
call fcn.00499333
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret