joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b900
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4deb31
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x501008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], esi
mov ecx, edi
mov dword [ebp - 0x2c], 0
call fcn.004021e0
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x41b94d
mov edx, dword [eax]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x41b964
mov eax, edx
cmp word [eax], 0x25
je 0x41b998
add eax, 2
sub ecx, 1
jne 0x41b956
push edi
mov ecx, esi
call fcn.00409f30
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d99e2
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x41b964
sub eax, edx
sar eax, 1
cmp eax, 0xffffffff
je 0x41b964
push edi
lea ecx, [ebp - 0x28]
call fcn.00409f30
mov dword [ebp - 4], 1
mov ecx, edi
push 0
push 0
call fcn.00402e50
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x41b9eb
push edi
mov ecx, esi
call fcn.00409f30
mov dword [ebp - 0x2c], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004020f0
jmp 0x41b97a
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004da223
mov edx, dword [ebp - 0x30]
add esp, 4
inc edx
mov ebx, eax
mov ecx, edi
push edx
push ebx
call fcn.00402e50
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x41ba3d
cmp eax, dword [ebp - 0x30]
ja 0x41ba3d
xor ecx, ecx
mov word [ebx + eax*2], cx
mov ecx, ebx
call fcn.00402460
push eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.00402250
push ebx
call fcn.004da22c
add esp, 4
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00405590
jmp 0x41b9d6
Function at 0x424ea0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dfd48
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x501008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x424ee3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
push ecx
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.0042a660
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x424f0d
lea edx, [esi + 8]
jmp 0x424f0f
xor edx, edx
mov ecx, ebx
mov dword [ebp - 0x18], edx
call fcn.00402e40
test al, al
jne 0x424f24
call fcn.00402e50
jmp 0x424f26
xor eax, eax
push eax
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
test eax, eax
jne 0x424f73
call ecx
cmp eax, 5
jne 0x424f6d
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebx
call fcn.00402e40
test al, al
jne 0x424f5d
call fcn.00402e50
jmp 0x424f5f
xor eax, eax
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [edi]
test eax, eax
je 0x424f91
call ecx
cmp eax, 0xb7
jne 0x424f86
mov byte [edi + 5], 1
mov ecx, dword [edi]
call fcn.00423af0
mov eax, dword [edi]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x424fb7
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x424fcc
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.004d9a23
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d99e2
mov esp, ebp
pop ebp
ret 4
Function at 0x4276e0
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x124]
sub esp, 0x124
push 0xffffffffffffffff
push 0x4e012a
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x501008]
xor eax, ebp
mov dword [ebp + 0x120], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi], 0
je 0x427725
call fcn.00427930
cmp byte [0x503b3c], 0
jne 0x427738
mov eax, 0x80000001
jmp 0x427901
mov eax, dword [esi]
test eax, eax
jne 0x4277a3
push 8
call fcn.004d99f3
mov edi, eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
push 1
call fcn.004d99f3
mov dword [edi + 4], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [ebp + 8]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x14
mov dword [ebp + 4], 0x11c
lea eax, [ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x427792
cmp dword [ebp + 8], 6
mov eax, dword [edi + 4]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 0xffffffff
mov dword [esi], edi
mov dword [edi], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x4278f0
call fcn.00423730
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test al, al
jne 0x427896
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x30]
mov eax, dword [esi]
add eax, 4
mov byte [ebp - 0xd], 0
push str.Advapi32.dll
mov dword [ebp - 0x14], eax
call fcn.00402100
mov dword [ebp - 4], 2
lea eax, [ebp - 0x30]
push eax
call fcn.004280d0
mov ecx, eax
call fcn.00428190
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004020f0
test edi, edi
je 0x4278f0
push str.OpenProcessToken
push edi
call ebx
mov ebx, eax
test ebx, ebx
je 0x4278f0
push dword [ebp - 0x18]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4278f0
lea eax, [ebp]
mov dword [ebp], 0
push eax
push 0x20008
push edi
call ebx
test eax, eax
je 0x427863
push dword [ebp]
mov ecx, dword [ebp - 0x14]
call fcn.004238b0
mov bl, al
jmp 0x427866
mov bl, byte [ebp - 0xd]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov ecx, dword [ebp]
test ecx, ecx
je 0x427879
push ecx
call edi
test bl, bl
je 0x4278f0
mov ecx, dword [esi]
add ecx, 4
call fcn.00423250
call fcn.00423730
test al, al
je 0x4278f0
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Advapi32.dll
lea ecx, [ebp - 0x30]
call fcn.00402100
mov dword [ebp - 4], 3
lea eax, [ebp - 0x30]
push eax
call fcn.004280d0
mov ecx, eax
call fcn.00428190
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004020f0
test edi, edi
je 0x4278f0
push str.RegOpenCurrentUser
push edi
call ebx
test eax, eax
je 0x4278f0
push dword [esi]
push 0x20019
call eax
test eax, eax
je 0x4278f0
mov eax, dword [esi]
mov dword [eax], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x4278ff
mov dword [eax], 0x80000001
mov eax, dword [esi]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x120]
xor ecx, ebp
call fcn.004d99e2
lea esp, [ebp + 0x124]
pop ebp
ret 4
Function at 0x427af0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x628]
sub esp, 0x628
push 0xffffffffffffffff
push 0x4e01a0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x501008]
xor eax, ebp
mov dword [ebp + 0x624], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0x630]
lea ecx, [ebp - 0x24]
mov ebx, dword [ebp + 0x634]
call fcn.00402ed0
mov dword [ebp - 4], 0
mov eax, dword [0x503b90]
mov dword [ebp], 0
mov dword [ebp], 0x503b90
test eax, eax
je 0x427b64
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 1
mov ecx, 0x503b78
call fcn.00402e40
test al, al
jne 0x427b8e
call fcn.004021e0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x427b85
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
jmp 0x427c33
push 0x20c
lea eax, [ebp + 0x418]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp + 0x418]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x427cd3
xor eax, eax
push 0x412
push eax
mov word [ebp + 0x622], ax
lea eax, [ebp + 4]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp + 4]
push 0x208
push eax
lea eax, [ebp + 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x427c20
test eax, eax
je 0x427c20
add eax, eax
cmp eax, 0x412
jae 0x427d26
xor ecx, ecx
mov word [ebp + eax + 4], cx
lea ecx, [ebp + 4]
call fcn.00402460
push eax
lea eax, [ebp + 4]
jmp 0x427c32
lea ecx, [ebp + 0x418]
call fcn.00402460
push eax
lea eax, [ebp + 0x418]
push eax
lea ecx, [ebp - 0x24]
call fcn.00402250
mov byte [ebp - 4], 0
mov eax, dword [0x503b90]
test eax, eax
je 0x427c4f
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
push edi
lea eax, [ebp - 0x24]
mov dword [ebp], 0
push eax
mov ecx, esi
call fcn.00427a80
test al, al
je 0x427c6e
mov bl, 1
jmp 0x427cf0
push 0x20c
lea eax, [ebp + 0x418]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp + 0x418]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x427cee
xor eax, eax
lea ecx, [ebp + 0x418]
mov word [ebp + 0x622], ax
call fcn.00402460
push eax
lea eax, [ebp + 0x418]
push eax
lea ecx, [ebp - 0x24]
call fcn.00402250
push ebx
push edi
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.00427a80
mov bl, al
jmp 0x427cf0
mov byte [ebp - 4], 0
mov eax, dword [0x503b90]
test eax, eax
je 0x427ce7
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp], 0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004020f0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x624]
xor ecx, ebp
call fcn.004d99e2
lea esp, [ebp + 0x628]
pop ebp
ret 8
call fcn.004d9b52
int3
Function at 0x429010
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x501008]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 8], eax
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
push edi
cmp dword [ebp + 0x10], 0xffffffff
mov edi, dword [esp + 0x20]
je 0x429092
mov ecx, 0x100000
nop dword [eax]
nop word [eax + eax]
cmp esi, 0x100000
mov dword [esp + 0x14], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
add ebx, ecx
test eax, eax
je 0x429092
test ecx, ecx
je 0x42908e
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x429050
xor eax, eax
jmp 0x429097
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4290a1
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004d99e2
add esp, 0xc
ret 0xc
Function at 0x429470
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0706
mov eax, dword fs:[0]
push eax
sub esp, 0x834
mov eax, dword [0x501008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x818], ecx
lea eax, [ebp - 0x810]
push eax
push 0x3fe
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
mov dword [ebp - 0x81c], edi
test edi, edi
je 0x429550
lea edx, [ebp - 0x810]
mov dword [ebp - 0x814], 0
xor esi, esi
mov dword [ebp - 0x820], edx
mov dword [ebp - 0x814], esi
mov dword [ebp - 4], esi
cmp edi, 0x3fe
jbe 0x42956e
xor ecx, ecx
lea eax, [edi + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004da223
add esp, 4
mov ebx, eax
mov esi, ebx
mov dword [ebp - 0x820], ebx
mov dword [ebp - 0x814], esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x42953c
cmp eax, edi
ja 0x42953c
mov edx, ebx
xor ecx, ecx
mov edi, eax
mov dword [ebp - 0x81c], edi
mov dword [edx + eax*2], ecx
jmp 0x42959c
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x429550
push ebx
call fcn.004da22c
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d99e2
mov esp, ebp
pop ebp
ret
lea eax, [edi + edi]
cmp eax, 0x800
jae 0x42969a
xor ecx, ecx
mov word [ebp + eax - 0x810], cx
add eax, 2
cmp eax, 0x800
jae 0x42969a
mov word [ebp + eax - 0x810], cx
xor ecx, ecx
xor ebx, ebx
test edi, edi
je 0x42967f
mov eax, dword [ebp - 0x81c]
mov edi, 2
mov esi, dword [ebp - 0x818]
mov dword [ebp - 0x824], edi
nop
cmp word [edx + edi - 2], 0
jne 0x429667
cmp ecx, ebx
je 0x429667
lea eax, [edx + ecx*2]
push eax
lea ecx, [ebp - 0x83c]
call fcn.00402100
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x83c]
call fcn.004021e0
mov ecx, esi
mov dword [ebp - 0x818], eax
call fcn.00405880
mov edx, eax
call fcn.004057f0
mov ecx, dword [edx]
cmp ecx, dword [eax]
mov ecx, esi
je 0x429634
call fcn.004057f0
mov edi, eax
mov edx, dword [edi]
call fcn.00402000
push dword [ebp - 0x818]
mov ecx, eax
call fcn.00405590
add dword [edi], 0x18
mov edi, dword [ebp - 0x824]
jmp 0x429649
push dword [ebp - 0x818]
call fcn.004057f0
mov ecx, esi
mov eax, dword [eax]
push eax
call fcn.00416580
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x83c]
call fcn.004020f0
mov eax, dword [ebp - 0x81c]
lea ecx, [ebx + 1]
mov edx, dword [ebp - 0x820]
inc ebx
add edi, 2
mov dword [ebp - 0x824], edi
cmp ebx, eax
jb 0x4295c0
mov esi, dword [ebp - 0x814]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x429693
push esi
call fcn.004da22c
add esp, 4
mov al, 1
jmp 0x429552
call fcn.004d9b52
int3
Function at 0x4296a0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc898
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x501008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
cmp esi, 0xffffffff
jne 0x4296d7
xor al, al
jmp 0x429739
and esi, 0xffffb1af
push esi
call fcn.00402e50
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4296f2
mov al, 1
jmp 0x429739
lea ecx, [ebp - 0x28]
call fcn.00402ed0
mov dword [ebp - 4], 0
mov edx, ecx
mov ecx, ebx
call fcn.00429a10
test al, al
je 0x429726
push esi
lea ecx, [ebp - 0x28]
call fcn.00402e50
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x429726
mov bl, 1
jmp 0x429728
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004020f0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d99e2
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc898
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x501008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.00402e50
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4297dd
lea ecx, [ebp - 0x28]
call fcn.00402ed0
mov dword [ebp - 4], 0
mov edx, ecx
mov ecx, ebx
call fcn.00429a10
test al, al
je 0x4297cc
lea ecx, [ebp - 0x28]
call fcn.00402e50
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004020f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d99e2
mov esp, ebp
pop ebp
ret
Function at 0x429800
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0750
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x501008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00402e50
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x429846
mov al, 1
jmp 0x42993a
mov ecx, esi
call fcn.00402e50
push eax
lea ecx, [ebp - 0x28]
call fcn.00402100
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00429760
mov ebx, eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004020f0
cmp ebx, 0xffffffff
jne 0x429885
xor al, al
jmp 0x42993a
mov ecx, esi
call fcn.00402e50
push eax
lea ecx, [ebp - 0x28]
call fcn.00402100
mov dword [ebp - 4], 1
xor edx, edx
lea ecx, [ebp - 0x28]
call fcn.004296a0
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004020f0
test bl, bl
je 0x42987e
mov ecx, esi
call fcn.00402e50
push eax
call edi
test eax, eax
jne 0x42983f
lea ecx, [ebp - 0x28]
call fcn.00402ed0
mov dword [ebp - 4], 2
mov edx, ecx
mov ecx, esi
call fcn.00429a10
test al, al
je 0x4298fc
lea ecx, [ebp - 0x28]
call fcn.00402e50
push eax
call edi
test eax, eax
je 0x4298fc
mov bl, 1
jmp 0x429929
mov ecx, esi
call fcn.00402e50
push eax
lea ecx, [ebp - 0x44]
call fcn.00402100
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x2c]
call fcn.004296a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.004020f0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004020f0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d99e2
mov esp, ebp
pop ebp
ret

Function at 0x429960
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x501008]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, dword [esp + 0x218]
lea eax, [esp + 4]
push esi
push edi
push 0x20c
push 0
push eax
mov esi, edx
mov edi, ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0xc]
mov ecx, esi
push eax
push 0
call fcn.00402e50
push eax
mov ecx, edi
call fcn.00402e50
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4299f1
xor eax, eax
lea ecx, [esp + 0xc]
mov word [esp + 0x216], ax
call fcn.00402460
push eax
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call fcn.00402250
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004d99e2
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d99e2
add esp, 0x210
ret
Function at 0x42af00
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x501008]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x42af65
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42af40
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42af65
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004d99e2
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.004d99e2
add esp, 8
ret 4
Function at 0x433a24
Capabilities:
Terminate thread

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
mov edi, ecx
cmp dword [edi + 0x64], 0
je 0x433a3b
push dword [edi + 0x64]
call esi
cmp dword [edi + 0x70], 0
je 0x433a46
push dword [edi + 0x70]
call esi
xor ebp, ebp
cmp dword [edi + 0x78], ebp
je 0x433b34
push 0x503b40
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x78]
test al, 1
je 0x433a6f
push dword [edi + 0x7c]
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov eax, dword [edi + 0x78]
test al, 2
je 0x433a83
push dword [edi + 0x80]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler]
mov eax, dword [edi + 0x78]
pop ecx
test al, 4
je 0x433a94
push dword [edi + 0x84]
call dword [sym.imp.VCRUNTIME140.dll__set_purecall_handler]
pop ecx
mov ebx, dword [0x503b60]
mov eax, dword [ebx + 4]
add eax, 0xfffffffc
cmp dword [eax], edi
jne 0x433aa9
mov dword [ebx + 4], eax
jmp 0x433afa
push str.warning:_removing_Breakpad_handler_out_of_order_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
pop ecx
push eax
call fcn.0042e900
mov ebx, dword [0x503b60]
pop ecx
pop ecx
mov esi, dword [ebx]
mov eax, dword [ebx + 4]
cmp esi, eax
je 0x433afa
lea ebp, [esi + 4]
cmp dword [esi], edi
jne 0x433aeb
mov eax, dword [ebx + 4]
sub eax, ebp
push eax
push ebp
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
add dword [ebx + 4], 0xfffffffc
jmp 0x433af1
add esi, 4
add ebp, 4
mov eax, dword [ebx + 4]
cmp esi, eax
jne 0x433ad1
xor ebp, ebp
mov ecx, dword [ebx]
cmp ecx, eax
jne 0x433b29
test ecx, ecx
je 0x433b19
mov edx, dword [ebx + 8]
sub edx, ecx
and edx, 0xfffffffc
call fcn.004024e0
mov dword [ebx], ebp
mov dword [ebx + 4], ebp
mov dword [ebx + 8], ebp
push 0xc
push ebx
call fcn.004d9a23
pop ecx
pop ecx
mov dword [0x503b60], ebp
push 0x503b40
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
cmp dword [edi + 0xc], ebp
jne 0x433b7a
push 1
push dword [edi + 0x88]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x88]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
lea eax, [edi + 0x90]
mov dword [edi + 0x88], ebp
push eax
call ebx
push dword [edi + 0xa8]
call esi
push dword [edi + 0xac]
call esi
or eax, 0xffffffff
lock xadd dword [0x503b5c], eax
jne 0x433b8e
push 0x503b40
call ebx
lea ecx, [edi + 0xc0]
call fcn.004344e8
lea ecx, [edi + 0x40]
call fcn.004020f0
lea ecx, [edi + 0x28]
call fcn.004020f0
lea ecx, [edi + 0x10]
call fcn.004020f0
mov ecx, dword [edi + 0xc]
pop edi
pop esi
pop ebp
pop ebx
test ecx, ecx
je 0x433bc2
push ecx
call fcn.00434521
ret
Function at 0x434810
Capabilities:
Read pipe
Write file on windows
Write pipe

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov ebx, dword [ebp + 0x360]
lea ecx, [ebp + 0x348]
call fcn.00402e50
mov esi, dword [ebp + 0x24]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0x4c], eax
lea ecx, [ebp + 0x38]
lea eax, [ebp + 0x3c]
mov dword [esp + 0x50], esi
mov dword [esp + 0x58], eax
xor esi, esi
lea eax, [ebp + 0x40]
mov dword [esp + 0x48], 1
mov dword [esp + 0x5c], eax
xorps xmm0, xmm0
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x20]
push esi
mov dword [esp + 0x68], eax
lea eax, [esp + 0x14]
push eax
push 0x34
lea eax, [esp + 0x20]
mov dword [esp + 0x60], ecx
push eax
push 0x34
lea eax, [esp + 0x5c]
mov dword [esp + 0x7c], esi
push eax
push dword [esp + 0xcc]
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
movups xmmword [esp + 0x38], xmm0
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
movups xmmword [esp + 0x50], xmm0
mov dword [esp + 0x60], esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
je 0x434985
cmp dword [esp + 0x14], 2
jne 0x434985
cmp dword [esp + 0x18], esi
je 0x434985
cmp dword [esp + 0x34], esi
je 0x434985
cmp dword [esp + 0x38], esi
je 0x434985
cmp dword [esp + 0x3c], esi
je 0x434985
push esi
lea eax, [esp + 0x14]
mov dword [esp + 0x84], esi
push eax
push 0x34
lea eax, [esp + 0x88]
mov dword [esp + 0x90], esi
push eax
push dword [esp + 0xc4]
xorps xmm0, xmm0
mov dword [esp + 0x9c], esi
movups xmmword [esp + 0xa0], xmm0
mov dword [esp + 0xc0], esi
movups xmmword [esp + 0xb0], xmm0
mov dword [esp + 0x90], 3
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x434985
mov ecx, dword [esp + 0x34]
mov al, 1
mov dword [ebp + 0x28], ecx
mov ecx, dword [esp + 0x38]
mov dword [ebp + 0x2c], ecx
mov ecx, dword [esp + 0x3c]
mov dword [ebp + 0x30], ecx
mov ecx, dword [esp + 0x18]
mov dword [ebp + 0x34], ecx
jmp 0x434987
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret 4